Line to include more than one name

Hello Colleagues,
I need help with the below line
I have this line in my query,  I would like it to pull information from Groupnames 'WIP -Oil', Refined Oil, Soap, Fat.  what should substitute = with so that I can incorporate the above names
Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = 'WIP - Oil')
Thanks,
Titi

Am trying to modify the below query  to include the following on itmsGrpNam ( WIP-Oil, Fat, Soap, Refined Oil) those are group names
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @Group nvarchar(10)
Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
Set @Group = (Select max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = 'WIP - Oil')
Select
a.Itemcode,
max(a.Dscription) as 'Description',
sum(a.OpeningBalance) as 'OpeningBalance',
sum(a.[IN]) as Receipt,
sum(a.OUT) as Issue,
(sum(a.OpeningBalance) + sum(a.[IN]) - Sum(a.OUT)) as Closing
from(
Select
N1.Itemcode,
N1.Dscription,
(sum(N1.inqty)-sum(n1.outqty)) as 'OpeningBalance',
0 as [IN],
0 as OUT
From dbo.OINM N1
Where
N1.DocDate < @FromDate
Group By
N1.ItemCode,N1.Dscription
Union All
select
N1.Itemcode,
N1.Dscription,
0 as 'OpeningBalance',
sum(N1.inqty) as [IN],
0 as OUT
From dbo.OINM N1
Where
N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
N1.Inqty >0
Group By
N1.ItemCode,N1.Dscription
Union All
select
N1.Itemcode,
N1.Dscription,
0 as 'OpeningBalance',
0 as [IN],
sum(N1.outqty) as OUT
From dbo.OINM N1
Where
N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
N1.OutQty > 0
Group By N1.ItemCode,N1.Dscription) a, dbo.OITM I1
where a.ItemCode=I1.ItemCode and I1.ItmsGrpCod = @Group
Group By a.Itemcode
Order By a.Itemcode

Similar Messages

  • How do I send pictures from iphoto to a group via email instead of to just one individual? I can't type in more than one name or send the pictures to a group.

    How do I send pictures from iphoto to a group via email instead of to just one individual? I can't type in more than one name or send the pictures to a group.

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • BDC: To Include more than one value in one field.

    Hi All,
    I want to include more than one value in a particular filed, while its running in back ground.
    The requirement is like this
      perform bdc_field       using 'PNPABKRS-LOW'
                                     '01'.
    01 is a filed on employee payroll type : management staff.
    02 - Filed staff
    03 - work men
    How can i include 02 and 03 also for the perform.
    it has to check whether the employee  can belongs to any of the above three.
    Thanks in Advance,
    Points Rewarded for Help full answer.

    Hi, Ramesh,
    You can not use all the 3 fields at the same time, instead you can pass on one variable in that perform.
    eg.
    take all your staff value in one internal table and use the following code
    loop at i_tab into wa_tab.
    data : l_variable type string.
    perform bdc_field using 'PNPABKRS-LOW'  wa_tab-staff.
    endloop.
    in first run of loop it will take value '01', in second '02' and so on.
    regards,
    vikas
    plz reward if helpful.

  • Sending more than one name value pair via ajaxRequest.add()

    Hi all,
    I'm implementing AJAX in Oracle Application Express to perform DML operations on a table. I need to send more than one name value pair via the ajaxRequest object. Can someone guide me how to achieve this? Say for example i need to send 2 values(need to send 2 form elements when submit button is clicked) P3_region and P3_scope. i tried the following methods.
    Method 1:
    ======
    ajaxRequest.add('P3_region',document.getElementById('P3_region').value);
    ajaxRequest.add('P3_scope',document.getElementById('P3_scope').value);
    Method 2:
    ======
    ajaxRequest.add('P3_region',document.getElementById('P3_region').value,'P3_scope',document.getElementById('P3_scope').value);
    Neither of them is fruitful. Can someone guide me how to achieve this?
    Regards,
    Balaji Radhakrishnan.

    Hi Roel,
    The javascript goes like this.
    <script language="JavaScript" type="text/javascript">
    function getElement1()
    document.getElementById('P3_Element1').value = '';
    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=Element1Process',0);
    ajaxRequest.add('P3_Element2',document.getElementById('P3_Element2').value);
    ajaxRequest.add('P3_Element3',document.getElementById('P3_Element3').value);
    ajaxRequest.add('P3_Element4',document.getElementById('P3_Element4').value);
    ajaxRequest.add('P3_Element5',document.getElementById('P3_Element5').value);
    ajaxRequest.add('P3_Element6',document.getElementById('P3_Element6').value);
    ajaxResult = ajaxRequest.get();
    if(ajaxResult)
    var wsArray = ajaxResult.split("~");
    document.getElementById('P3_Element1').value = wsArray[0];
    </script>
    The application Process goes like this..
    declare
    v_Element1 VARCHAR2(60);
    begin
    select distinct Element1 into v_Element1 from TableA where Element2=:P3_Element2 AND Element3=:P3_Element3 AND Element4=:P3_Element4 AND Element5=:P3_Element5 AND Element6=:P3_Element6;
    htp.prn(v_Element1);
    exception
    when others then
    v_Element1 := 'Invalid Header Combination';
    htp.prn(v_Element1);
    end;
    The requirement goes like this..
    When i give Element2, Element3,Element4,Element5,Element6 as input in the form page the Element1 should get displayed automatically without refreshing the page. But when i use the above javascript and application process i get the Element1 loaded with some html scripts. I call the javascript using onChange() function.
    Regards,
    Balaji Radhakrishnan.

  • How to Include more than one jar files

    My application uses more than one jar files. And all the jar files i am using are signed. when i include the jar files, i am including them in the resources section of the ".jnlp" file . The section of code looks like this:
    <resources>
    <jar href="utestfw.jar" main="true" download="eager"/>
    <jar href="crimson.jar"/>
    <jar href="jaxp.jar"/>
    </resources>
    <application-desc main-class="utestfw.ObjectBrowser"/>
    The deployment of the application is successful. The jar file - "utestfw.jar" contains the application main class when the application is launched it works, but when i choose the feature which involves the classes of either "crimson.jar" or "jaxp.jar" , the application terminates and the webstart console and the application is closed automatically. Am i wrong in adding the jar files? what is the way to add more than one jar files to the ".jnlp" file.
    Can anyone please help me?
    -Aparna

    I'll post u the jnlp file which i am using. To sign all the jars i've used the same alias ( a self signed certificate using keytool and jarsigner).Here is the jnlp file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="0.2 1.0"
    codebase="http://127.0.0.1:8080/healthdec"
    href="testTool.jnlp">
    <information>
    <title>Unit Test Manager </title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <description>A minimalist drawing application along the lines of Illustrator</description>
    <icon href="images/testing.gif"/>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.3+ 1.2+"/>
    <jar href="utestfw.jar" main="true" download="eager"/>
    <jar href="crimson.jar" main="false" download="eager"/>
    <jar href="jaxp.jar" main="false" download="eager"/>
    </resources>
    <application-desc main-class="utestfw.ObjectBrowser"/>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    Can u please look at the above code and suggest me where i am wrong. Thanks.
    -Regards
    Aparna

  • In one sessions.xml file can i include more than one project

    Hi Folks,
    I got a requirement to create more projects by using the same sessions.xml file if it is possible please let me know.
    thanks
    Venkatram R. Veerareddy

    Hi Venkatram,
    It is possible to have more than one session in sessions.xml. Have the sessions.xml like this
    <toplink-configuration>
    <session>
    <name>Session1</name>
    </session>
    <session>
    <name>Session2</name>
    </session>
    </toplink-configuration>
    Use session broker for handling both the sessions simultaneously. For more details see examples in toplink under directory broker.

  • How to include more than one input ready rows in analyzer

    Hi Gurus,
            I have a requirement that, I need to have more than one input ready rows at the end of the query output in analyzer.
       Normally it will show only one row as input ready at end of the query result in any manual planning analyzer., But my requirement is to have multiple input ready rows in analyzer. Is it possible in workbook/analyzer?.
    Thanks,
    V.Senthil

    Hi Senthil,
    Have a look at the below thread.
    How to add new rows for input ready query in BEx analyzer
    Regards,
    Venkatesh

  • Why does the "A" button go inactive when I highlight more than one name to start a group chat?

    I can't consistently start a group chat!  Help!  Sometimes it works, and sometimes it doesn't.

    Hi,
    AIM, Jabber, MSN (Windows Live), and Yahoo are the major IM services.
    AIM, MSN and Yahoo operate through their own Central server where you have to Login with a Name that is valid with that server.
    Jabber is a collection of Public and private servers which then are linked together via what is called Federation.
    AIM issue (or allow you to register) names directly and through several agreements with ISP and other services.
    Apple has one of these Agreements and Names Ending in @Mac.com and the MobileMe @Me.com names are Valid AIM Screen Names.
    AIM Names themselves tend to be just plain names where as others are or look like emails.
    Anyone of these three Names would be considered to be an "AIM" Buddy list in iChat as it logs in to the AIM Server.
    Google run the GoogleTalk service to allow Chats through their Web Mail Page.
    This is a Jabber server.
    Facebook seem to run a similar type of service.
    People and organisations that run Jabber servers can elect to run what are called Transports as well.
    These allow links to the other major services.
    An AIM transport would allow them to Add AIM buddies to their List and so on.
    iChat can also log in to Jabber servers including the GoogleTalk one
    The AIM App for PCs which is up to version 7.2.something can also allow people to Add their Facebook and Google Buddies  (sort of Reverse Transport if you like).
    I haven't downloaded the latest AIM for Mac version to see if it does the same.
    The short answer then is that all the major players are beginning to allow the adding of Buddies from other services.
    This is further complicated or involved, in that the major Social sites are also allowing people to link various Buddy lists in to one overall list.
    This tend to mean that if you link Facebook with Google Buddies and AIM Buddies there appears to be some sort of "Feedback" that allows those names to then appear in your AIM Buddy list.
    It does seem to somewhat fall down when you try and do Group Chats due to the different ways the major services conduct these chats.
    8:14 PM      Thursday; July 7, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Aliases - A question about services which are known by more than one name

    If I create a tuxedo alias for an existing service, does the 'original' service simply answer to either name OR does the server end up with one more service than it used to have? i.e does aliasing create a clone.I dont want to discuss the implications of cloning etc, I just want to if a service then bears two name plates or whether I get a clone of a service. I just want to know what the truth is.TIA(I have had two conflicting explanations from experienced developers - nice guys but who is right?)

    Allan Moore wrote:
    If I create a tuxedo alias for an existing service, does the 'original' service simply answer to either name OR does the server end up with one more service than it used to have? i.e does aliasing create a clone.I dont want to discuss the implications of cloning etc, I just want to if a service then bears two name plates or whether I get a clone of a service. I just want to know what the truth is.TIA(I have had two conflicting explanations from experienced developers - nice guys but who is right?)When you write a service, you write a Function, for example TOUPPER. When you compile the function into a server, you specify a mapping that service TOUPPER will be processed by function TOUPPER. When you boot the server and use the -A option, your telling the server to advertise all services in its mapping table, hence service TOUPPER is advertised. If I use the -s option to alias, then I am overriding the compiled mapping table and dynamically creating a new one. So by saying
    -sTOUPPER:TOUPPERV2 I am saying that service TOUPPER will be processed by function TOUPPERV2 (version 2). Whatever was compiled into the server is overridden.
    If you put a -A and a -s on the CLOPT line, then things COULD get weird. If I said "-A -sTOUPPER:TOUPPERV2": then I'm saying TOUPPER is processed by both functions TOUPPER and TOUPPERV2. I don't know if this is even legal, and I can't think of a reason to do this. The Tuxedo service table just scans linearly looking for a string match on TOUPPER. Which ever function entry comes first is the function that will be called.
    If I said "-A -s TOLOWER:TOUPPER" then I'm adding a new service that uses an existing function. This is very legal, though a little cryptic for administrators. A better choice is "-s TOUPPER,TOLOWER:TOUPPER" so that it is explicit what services the service offers and what function is processing them.
    Hope this helps.
    Brian Douglass
    Transaction Processing Solutions, Inc.
    8555 W. Sahara
    Suite 112
    Las Vegas, NV 89117
    Voice: 702-254-5485
    Fax: 702-254-9449
    e-mail: [email protected]

  • More than one name with the same email

    Hello there!
    I have an account with skype that i use frequently and once i forgot my password and got the link on my email. when i tried to log in and change password i found out that i have three names and i don't want them all, so how can i delete the other two??
    please i need a solution about it

    lenitaduplessis wrote:
    Hi, I have the same problem. Can you tell me who helped you to deleted the skype names you did not want?
    Thanks
    Lenita
    if your concern is the same or similar as the one mentioned by the thread starter, then the link provided above your post may also help you.
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

  • One Line Item for More than one Ship to Party

    Dear Friends
    In one sales order which has only one Line Items for example P-101 qty-40 pcs. That 40pcs should shipt to my 4 ship-to-party. How I end user to do it. in one Line item in One Sales Order.
    Kindly Regards
    Arun

    Hi Arun,
    First create four ship to party master data which will be having different address.
    Then assign those ship to party in your sold to party master data in the partner tab.
    If you want sent material P-101 to different persons then you have to divide the quantities in the line item like this
    P-101          10
    p-101          10
    p-101          10
    p-101          10
    Now select one line item and click on detail screen.
    After that go to the Partner Tab and change the Ship to Party for that particular item.
    Do this same procedure for other three line item also.
    Try this method it might work.
    Suneet Prakash

  • Want to include more than one domains for SSO

    I have 3 authentication sources (3 NTLMs).I have hooked one to SSO and want to do same to the other 2. Do i need to do anything special in the PTconfig settings or anywhere else.Like what will happen to DefaultAuthCourcePrefix --<!-- This is the default auth source prefix that will be prepended to the login name when users log into your system, unless they pick another auth source from the drop down box on the login page. In the case of SSO, this is the auth source category for all of your SSO users. --> <DefaultAuthSourcePrefixvalue="1stdomain"/>

    Actually, 5.0 will support multiple auth source prefixes with SSO out of the box, if the SSO itself provides the domain/prefix and the prefix of the portal user accounts is the same as the one the SSO provides.
    In the case of NTLM, since Windows provides the domain name, you just need to make sure your authentication sources use the domain name as the Plumtree prefix:
    http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_13271_574734_0_0_18/windows_integrated_authentication_sso_with_multiple_nt_domains.htm

  • How to include more than one scan in the outgoing email

    ever so often I wish to scan several pages to be included in one outgoing email-how do I do that?

    4683,
    Welcome to the HP Community Forum.
    The following may help with the following caveat:  The document was written to explain how to create a combined scan.  It does not include emailing the output.
    Scan_Multiple_Documents-Combine
    NOTE Page 4 of the document:  Where it shows "Do Nothing", you would want to CHECK "email the file(s)".
    Click the Kudos Thumbs-Up to show you appreciate the help.
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Click Accept as Solution when the Answer provides a Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • How to Include More Than One Font and Font Color Within a Fluid Grid Div Tag?

    Using CSS code, I can make all the words within a fluid grid div tag the same font, font size, and font color, but how do I make a few of the words different?

    You can style the basic text and heading selectors with CSS:
    p { }
    h1 { }
    h2 { }
    h3 { }
    h4 { }
    etc...
    And you can make classes:
    .red {color:red}
    .highlight {background-color:yellow}
    Then apply classes to your text or sections of it using the HTML properties panel.
    <div>
         <p>This is a default paragraph style.</p>
         <p class="red">This is red.</p>
         <p class="highlight">This is highlighted.</p>
         <p>Default style with <span class="red highlight">red, highlighted text</span> and normal text.</p>
    </div>
    Incidentally, this will work in any layout.
    How to Develop with CSS?
    http://phrogz.net/css/HowToDevelopWithCSS.html
    Nancy O.

  • Include more than one email address from a single contact in dist. list

    Hi,
    I want to send a message to a group. Some of the members are married and their contacts are listed together in the address book. But I want to send an email to BOTH. How can I choose both email addresses when sending info. to my group?

    I have this issue as well. I support three mac osx servers. all setup around the same time. all have this issue. it's quite annoying.
    still not sure how to fix.

Maybe you are looking for