Need output for only two org_ids

hi
i have this query with me
select DESCRIPTION, list_price_per_unit,segment1,segment2,segment3,PRIMARY_UOM_CODE,PRIMARY_UNIT_OF_MEASURE ,org_id
from mtl_system_items
where  INVENTORY_ITEM_STATUS_CODE ='Active'
and    segment1 like '205%' or segment1 like '7%'
the output is as follows
DESCRIPTION           LIST_PRICE_PER_UNIT    SEGMENT1    SEGMENT2    SEGMENT3   PRIMARY_UOM_CODE   PRIMARY_UNIT_OF_MEASURE  org_id
CABLE 3 X 2.5MM 2 (WHITE)         18.5   2050101108                            MTR                             METER                                     103
CABLE 3 X 2.5MM 2 (WHITE)         1       2050101108                             MTR                             METER                                     105
TYRE 700 R16 LT                 1     7020499027                                       EA                                EACH                                        121
HAND TAP SET MM              13.5          2059901143                              SET                                Set                                         103
HAND TAP SET MM              1              2059901143                              SET                                Set                                         105
TYRE                                 1      7020499035                                    EA                                EACH                                        121
i need only the output corresponding to org_id 105 and 121 only
ie as follows
DESCRIPTION         LIST_PRICE_PER_UNIT    SEGMENT1    SEGMENT2    SEGMENT3   PRIMARY_UOM_CODE   PRIMARY_UNIT_OF_MEASURE  org_id
CABLE 3 X 2.5MM 2 (WHITE)         1      2050101108                                             MTR                             METER                                     105
TYRE 700 R16 LT                 1         7020499027                                                  EA                                EACH                                        121
HAND TAP SET MM               1              2059901143                                             SET                                Set                                         105
TYRE                                  1         7020499035                                                     EA                                EACH                                        121
i tried
and    organization_id LIKE'105' OR     organization_id LIKE '121'
but doesnt seem to workkindly help
thanking in advance
Edited by: makdutakdu on Sep 22, 2010 8:00 AM
Edited by: makdutakdu on Sep 22, 2010 8:00 AM
Edited by: makdutakdu on Sep 22, 2010 8:02 AM
Edited by: makdutakdu on Sep 22, 2010 8:03 AM
Edited by: makdutakdu on Sep 22, 2010 8:04 AM
Edited by: makdutakdu on Sep 22, 2010 8:05 AM
Edited by: makdutakdu on Sep 22, 2010 8:06 AM
Edited by: makdutakdu on Sep 22, 2010 8:07 AM

Add this condition
and  (segment1 like '205%' or segment1 like '7%')
and
org_id IN (105,121)

Similar Messages

  • When i try to play a youtube video it plays for only two seconds

    when i try to play a youtube video it plays for only two seconds with sound but the screen stays black. it takes a little more time for the video to load also. then it crashes which ever internet program i am using. But whenever i turn off my plug-ins it works totally fine. how do i fix this? this has never happened to me before. i tried to uninstall flash player and reinstall but it fixes nothing, this has been going on for two days now.
    i use safari and firefox and both dont work

    Click here and download Flash.
    (102455)

  • Am I suposed to expect my Mac to be good for only two years?

    I got my Mac less than 2 years ago and since around the 6th month, the plastic on both the internal right and left corners has been breaking apart.
    I have been a good and careful user, but this still happened.
    I heard that the magnet on the upper part could be the one causing the plastic to break open in the lower part...Has anyone heard of this? Is there any solution to this? I mean...How much would I need to pay to get it fixed? Any idea? I just think it's so unfair that such a great product simply...falls apart!

    Some Apple products have been know to crack and create lines etc, so your problem is nothing new. You might want to try ringing Apple up and asking them.

  • Need only two decimal places, but BigDecimal isn't working

    Hello again. This time I've got a problem with getting only two decimal places. I tried using BigDecimal but when I compile it, I get an error "cannot find symbol class BigDecimal" and a "cannot find symbol variable BigDecimal".
    Grrr... I just want my value to have only 2 decimal places before it ends up in my text field.
    Any help will be appreciated.
    - Phonse
    if (ostuff1.equals("amt tendered"))
                     finalamt = total1 * 1.12;
                     change = cash1 - finalamt;
               BigDecimal finalamt2 = new BigDecimal(finalamt);
                  finalamt2 = finalamt2.setScale(2, BigDecimal.ROUND_DOWN);
                  BigDecimal change2 = new BigDecimal(change);
                  change2 = change2.setScale(2, BigDecimal.ROUND_DOWN);
                  finalamt = doubleValue(finalamt2);
                  change = doubleValue(change2);
                     addItem(String.format("Amount Tendered:          "+"P "+finalamt));
                     addItem(String.format("Change:                     "+"P "+change));
                   }

    @ georgemc
    Isn't it better to import whole packages instead so
    you can have everything available when you call them?
    I mean, it's kinda hard to import individual classes
    everytime you need to call them.No. You can get conflicts when importing complete packages. If you importjava.awt.*;
    java.util.*;and then declareList list;the compiler does not know which List you meant, java.util.List or java.awt.List.
    Offtopic @ prometheuzz
    LOL. When I was a kid still playing my Playstation I
    wanted to have a career in computers when I got to
    college. Now I'm 14 and a 3rd year high school
    student and I just got a reality check -- computers
    just isn't for me. And alot of those professionals
    say Java is the "easiest" programming language. O_O
    Meh. I'll just follow my other dream of becoming a
    chef. Just seems like my parents won't like it...
    Bleh... Two more years... Two more years...Sure, but if you like programming, work (hard) for it. Most people have to work hard in order to become good at something, no one is born as a programmer. This goes for becoming a chef as well.

  • Allow to create, only two objects for a class

    Hi,
    This question is asked in my interview. In singleton concept only one object is created, likewise only two objects are created for a class.
    For that i have write a code like this,
    public class OnlyTwoObjects {
         private static OnlyTwoObjects a1;
         private static OnlyTwoObjects a2;
         public static int n = 0;
         public static OnlyTwoObjects getInstance() {
              if (a1 == null) {
                   a1 = new OnlyTwoObjects();
                   return a1;
              } else if (a2 == null) {
                   a2 = new OnlyTwoObjects();
                   return a2;
              } else if (n == 1) {
                   return a1;
              } else if (n == 2) {
                   return a2;
              return null;
    } But they told this is not good way to do this.
    I don't know how to do this, if any body knows kindly let me know.

    vijay wrote:
    But i will explain my code, in that code we are allowed to create only two objects, Maximum. Understood.
    suppose both objects are created, then i will ask which object you need first or second, this is decided using the variable n if it is 1 then it will return the first object and it is 2 it will return the second object. sorry i didn't explain this in my previous post.This is your approach. Is this the requirement as well? Is it necessary that the user decide on which instance (first or second) is returned?Even if it was the requirement that the user decides which instance (first or second) is returned, with the original proposed implementation, the user only gets to decide which instance after calling getInstance() twice. If he calls getInstance() with n=2 when a1 is still null, he still gets a1. If he calls getInstance with n=1 when a2 is still null but a1 is non-null, then he gets a2. As is, he always gets a1 on the first call, a2 on the second call, and after that gets null unless he has set n to 1 or 2. (This explanation ignores any multi-threading issues that may come into play. This explanation is for a single thread.)

  • Need to join the two xml type output in plsql function

    Hi,
    I need to join the two xml type output in plsql function. Could you help me out?
    Sample function:
    function func_ret_stk return xmtype
    xmloutput_stk xmtype;
    xmloutput_desp xmtype;
    begin
    xmloutput_stk := --------;
    xmloutput_desp :=---------;
    return xmloutput_stk + xmloutput_desp;
    end ;
    Thanks in Advance,

    Hello,
    this is the forum for the tool {forum:id=260}.
    Please ask your question in {forum:id=157} or {forum:id=34}
    Regards
    Marcus

  • My computer and the Canon software for my wireless printer can't find my printer which is only two f

    My computer and the Canon software for my wireless printer can't find my printer which is only two feet away.  What do I do now?

    Hi DrLilaB,
    So that the Community can help you better, we will need to know what model printer you are using and Computer Operating System. (Windows XP/Vista/7/8 or Mac 10.x) 
    Any other details you'd like to give will only help the Community better understand your issue!
    If this is an urgent support need, please CLICK HERE to reach our friendly Technical Support Team by phone or email.

  • When I send a document for signature, two emails are sent to my client and myself.  How do I make sure only one is sent?

    When I send a document for signature, two emails are sent to my client and myself. How do I make sure only one is sent?

    Hi Mark,
    I checked your account at the backend and found many transactions sent out.
    In order to narrow down the issue and search we need to know the specific transaction detail for which you faced this issue.
    1. Signers email address
    2. Senders email address
    3.Name of the document
    4. Date it was sent.
    Do not post the information here. Send me a private message
    Also let me know which 2 mails did you receive? Could you please share the subject line for the same.
    Regards,
    Rave

  • My iphone was off for almost two weeks and once i cut it back on i only recieved text messages but no imessages that i KNOW were sent to my phone... is there anyway i can see them or no?

    My iphone was off for almost two weeks and once i cut it back on i only recieved text messages but no imessages that i KNOW were sent to my phone... is there anyway i can see them or no?

    Hi,
    In Messages on the Mac do you have the Preferences > Messages section set to "Save History when Conversations are Closed" ?
    This will store all IMs and iMessages in ~/Library/Messages/Archive.
    Use the Finder > Go Menu > Go to Folder and type that path into the Dialogue box that appears. (~/Library/Messages/Archive).
    They are stored in dated folders so some guessing/trail and error will be needed.
    You may find that if this was an iMessage and you  send the person a new message that the whole History with that Contact since you installed Mountain Lion/Started Messages may appear and that it is scrollable the closer you get to the "top" and the top may keep moving until all is on show.
    10:31 PM      Monday; December 24, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Updated to Yosemite, no problem.  now iPhoto and iMovie won't open.  Says I need to update software however, when i try to update indicates my User ID and PW won't work for these two pieces of software.  User ID and PW works everywhere else.

    Updated to Yosemite, no problem.  now iPhoto and iMovie won't open.  Says I need to update software however, when i try to update indicates my User ID and PW won't work for these two pieces of software.  User ID and PW works everywhere else.

    I am having the same problem.  I even changed my password and updated all of my security information.  Now it just gives me an error and retry message, which of course also does not work.  Went to support and was going to open a chat (seemed the simpler option) and received a message that my support has expired for this serial number unless I want to pay $29.00.  So I chose the option to call later, which was the exact time suck I was trying to avoid.  Why wouldn't the new operating system also update the apps that were already part of my old platform?

  • With 10.2 I can only use system speaker output for audio, NOT my RME FF400 I used previously. The FF400 works fine with other apps. How can I set this device in FCP 10.2? (it is set in both system preferences and midi)

    With 10.2 I can only use a system (e.g. speaker) output for audio, NOT my RME FF400 I used without any problems previously. The FF400 works fine with other apps (some like TwistedWave) setup in the program, and others (like Spotify) using system preferences & audio midi setup. How can I set the FF400 to be the sound output device in FCP 10.2? N.B. The FF400 is set as sound output device in both system preferences and audio midi setup.

    From the fcp.co forum. See if this does anything for you.
    simon_hutchings
    OFFLINE
    Junior Boarder
    Posts: 24
    Thank you received: 5
    Karma: 1
    I have the solution! Well it at least worked for me. This is the response I got from Apple, Can you please try the following steps towards fixing your audio issue, and report back with your results?
    1. Open the application Audio Midi Setup (located in Applications : Utilities)
    2. Select the Output Tab for the current output device
    3. Select the Configure Speakers option
    4. Select the Multichannel tab
    5. Change the setting to Stereo Now mine was set to stereo but the left channel wasn't showing left. re-clicking on stereo reloaded the settings and after clicking apply it worked. 

  • I have a mixer which i was using with my pc and now i bought a new macbook and it have only one jack for headphones and to use mixers i need jack for microphone too so what should i do

    i have a mixer which i was using with my pc and now i bought a new macbook and it have only one jack for headphones and to use mixers i need jack for microphone too so what should i do

    You need to get headset splitter adapter.
    http://www.startech.com/Cables/Audio-Video/Audio-Cables/35mm-4-Position-to-2x-3- Position-35mm-Headset-Splitter-Adapter-Male-to-Female~MUYHSMFF

  • I just purchased Time Capsule today.  I ONLY want to use it as an external drive.  I do not need it for Time Machine. I can see the TC in my finder, but when I click on a file or video to drag and drop, I get message that TC can't be modified. Help please

    I just purchased Time Capsule today.  I ONLY want to use it as an external drive.  I do not need it for Time Machine. I need to free up room on my computer. As of now, I can't even load updates. I can see the TC in my finder, but when I click on a file or video to drag and drop, I get message that TC can't be modified. Help please!

    I agree with Kappy.. passing files and especially via wireless is slow as slow.
    Just need to be sure your TC is the new AC model??
    And the OS on the computer is Lion?
    Have you completed the setup of the TC via the utility? You do still need to get internet via the TC so it has to be plugged into the main router..
    Give us the full picture of the network.
    Then we can help you get into it.. whether you should put your files on it is another question.

  • Hello, I have two questions on time capsule  I can only have it on my external hd files and free up my internal memory to my mac  I can use an external hard drive, in my case a lacie rugged as shared memory for my two computers

    Hello, I have two questions on time capsule  I can only have it on my external hd files and free up my internal memory to my mac  I can use an external hard drive, in my case a lacie rugged as shared memory for my two computers

    I have a mackbook pro and an iMac if I buy a time capsule 2tb airport, I can use it with time machine and what would be the best way to use it.
    There is no particular setup required for TM.. both computers will create their own backup sparsebundle which is like a virtual disk.. Pondini explains the whole thing if you read the reference I gave you.
    and how to use time capsule airport whit other external hd to use my old lacie airport with the new time capsule
    Up to you.. you can plug the external drive into the TC and enjoy really slow file transfers or you can plug it into your computer and use it as external drive.. which is faster than the TC.. and TM can include it in the backup.
    Again everything is explained in the reference.. you are not reading it.

  • I have had Adobe XI for about two years and My harddrive just crashed. My backups were part of the failure so I can't get it back. I purchased it from a third part supplier and it was a download. I need to find out how to get it restored. I can send scree

    I have had Adobe XI for about two years and My harddrive just crashed. My backups were part of the failure so I can't get it back. I purchased it from a third part supplier and it was a download. I need to find out how to get it restored. I can send screen shots of all of the drive location where the drive is still good and I can see my Adobe Acrobat pro information, but the download itself is missing. NEXT STEP?

    If you are talking about Reader (you did post in the Reader forum), then just download http://get.adobe.com/reader/enterprise. However Reader is free not purchasable. You can download a trial then install using your serial number, which if you didn’t register or write down somewhere you will be out of luck to track down.
    Download a free trial or buy Adobe products | Adobe downloads

Maybe you are looking for