How to specify in "the where" that a column belongs to a set of values ?

Hi,
I have a table named EMPLOYEE with a column named ID (ID is also the primary key of the table , and is of type NUMBER) . The table contains two thousands rows. Given a set of number values , I would want to write a query which returns all the employees who have their ID in the set. Please, how to write this query? (My problem is that the set of numbers can change;it can be {1;2;3} or {105;1007;10560;12041} or something else).
Thanks .

The usual construct would be
...from employee where id in (105,1007,10560,12041)Problem is that this list (set) is not dynamic. but we are working with a database, data is stored in tables there. So one simple solution is: Put your data in a table (may be a temp table) and select from that table.
...from employee e where e.id in (select t.id from mytemptable t)If that set list is a collection you have other possibilities. But it depends on the collection type and if you are able to use pl/sql or not.

Similar Messages

  • TS4002 I'm trying to create a new apple-id but when typing the email adress I want to use I'm told that the particular email adress is not allowed but when searching I can't find same being used. How do I find out where that particular email adress is use

    I'm trying to create a new apple-id but when typing the email adress I want to use I'm told that the particular email adress is not allowed When searching I can't find same being used anywhere. How do I find out where that particular email adress is used so I can delete it there and use it for my new apple-id?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    Also
    If you have Find My iPhone enabled, you can use Remote Wipe to erase the contents of your device. If you have been using iCloud to back up, you may be able to restore the most recent backup to reset the passcode after the device has been erased.

  • HT4859 how do you see the items that are backed up to iCloud -  I have 4.5 GB that I have used but I cant find where to see those items...help

    how do you see the items that are backed up to iCloud -  I have 4.5 GB that I have used but I cant find where to see those items...help

    That is everything in your iCloud account.  Videos and camera roll photos are only included in your backup, the size and content of which you can see on your phone in Settings>iCloud>Storage & Backup>Manage Storage>tap the name of your device under Backup.  This will show you the size of "Camera Roll", where these are contained.  (You can't see any detail beyond that.)  Photo stream photos can only been seen in your photo stream album on your phone, and they don't count against your storage so they aren't part of the 4.5 GB.  Everything esle is either in the backup, the items listed in Settings>iCloud>Storage & Backup>Manage Storage, or on icloud.com, where you can see your contacts, calendars, etc.

  • How do I reset the password that allows me to download reader - I worked with chat help - we rest my password and I can get into my adobe account but when I try to download reader and work my way through the process when I get to the password it will not

    How do I reset the password that allows me to download reader.. I worked with chat help two hours last night - we have reset a password that lets me into my adobe account but in the download reader process that password will not work - where it says Adobe reader wants to change something and please type in password, just vibrates with the dots glowing purple but will not open…. what do I do to reset that password or get it to function. they would not assist me further they said its a free download and I would need to seek help from forums ( all this is new to me )
    so "forums" help…what do I do ?
    thank you
    PL

    patricia here again:
    I am the system administrator - personal computer
    I have been able with your lead to find the password I need , and to have install happen
    however - when I then go to the website to download the Pdf document I need I get a screen with the big red adobe icon that says to complete and down load this document I must launch adobe reader a dn sign the terms of agreement , close browser and reopen.
    but thatscren has no choice buttons whatsoever, I cannot find anywhere a adobe reader image to launch - been into launch pad , preferences etc.
    so now the loop is the pdf document and the adobe screen saying I must do terms of agreement
    like is this Kafka like or what ...
    suggestions?
    thanks
    P.

  • HT4796 How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users?

    How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users? Having to log out just to sign in on a different user to access the files is absurd.
    Do I make all the files sharable to all the NOW users on the mac then just delete the files? Or can i erase my account that I made when starting up my new mac and then just use the one with the transferred files?
    I just dont want to have to og in and out of 2 different accounts .. Help please.         
    -Nina

    Sorry. /Users is a folder path. It would be similar to C:\Users (if that exists on Windows).
    So, in the Finder, select Computer from the Go menu.
    You'll see Macintosh HD, double-click that to open it.
    In there you'll see several folders. One is Users. That is where all the user Home folders exist. Select the other account's home folder and go to step 3.
    If you have any more confusion, please stop and ask. We'll get there.
    If you feel more comfortable, you can just log into that other account and move the files into /Users/Shared.
    Then, log into the account you wish to use and copy the files from the Shared folder and paste them into your Home folder, wherever they belong, Documents, Music, Pictures, etc.  That just takes a little more work. Transferring them into Shared, and then copying into your home sets the permissions on the files so that you won't have a problem accessing them later. The steps I provided just prevent you from having to do the double move, since you are not going to use the old account once you are done.
    Quick unix shorthand. If someone gives you a file path that begins with a /, that means the root of the hard drive, ie Macintosh HD (if you haven't renamed it). The path separator in unix is /, not \.
    A path that starts with ~/ means your Home folder, the one inside /Users named with your account name.

  • I never used this program before. I tapped on the "budget form" and decided I'd rather use the "expense form".  I can't figure out how to get to the page that you choose which form you want

    I never used this program before. I tapped on the "budget form" and decided I'd rather use the "expense form".  I can't figure out how to get to the page that you choose which form you want. How would I do that?

    Pct,
    In the Numbers spreadsheets window where all your documents are shown as icons, tap the Plus Sign.
    Choose Create Spreadsheet
    Select the template you want to use
    Jerry

  • Hi!pls tell me how can I cancel the files that download,but they can not be downloaded,there maybe a. Problem.

    hi!pls tell me how can I cancel the files that download,but they can not be downloaded,there maybe a. Problem.

    What files, and downloaded from where and by what app?

  • How to specify when the authorization check is to be performed

    How to specify when the authorization check is to be performed declratiely for
    any webapplication.
    There is Direction object argument as part isAccessAllowed method of AccessDecesion
    class which can have either of the three values i.e. POST, PRE, & ONCE. Ijust
    wana know how can we declaratively set this direction value for any Web Resource
    in weblogic server 8.1 security
    -Subhash

    "Subhash Chopra" <[email protected]> wrote in message
    news:3e9c5805$[email protected]..
    >
    How to specify when the authorization check is to be performed declratielyfor
    any webapplication.
    There is Direction object argument as part isAccessAllowed method ofAccessDecesion
    class which can have either of the three values i.e. POST, PRE, & ONCE.Ijust
    wana know how can we declaratively set this direction value for any WebResource
    in weblogic server 8.1 security
    The containers always call the isAccessAllowed method with no direction so
    Once is passed
    to the providers. There is no way to set the direction that the containers
    use.
    -Subhash

  • How do i see the songs that r on my iPod?

    Long story...my songs where deleted from my PC...how do i see the songs that r on my iPod?

    I guess no-one has answered because your question is not clear.
    You see songs that are on your iPod by selecting 'songs' in the iPod main menu.
    Not sure where deleted songs from the PC comes into it, so you might need to explain further.

  • How to select all the people that are not in any equipe  ?

    Hi,
    I have a nice SQL expression that gives me as a result all the "AGENTS" (people) that are working in an EQUIPE (a team)
    select a."AGENT_ID",
    a."NOM" || ' ' || a."PRENOM" "Nom",
    c.libelle "Equipe",
    a."DATE_EMBAUCHE" "Date embauche",
    a."DATE_DEBAUCHE" "Date débauche"
    from OBSERVATOIRE."AGENT" a,
    observatoire.equipe_agents b,
    observatoire.equipe c
    where a.agent_id = b.agent_id
    and b.equipe_id = c.equipe_id
    order by nom
    Now, how to select all the agents that are NOT working in any "EQUIPE" (team) ?
    I have tried but could not succeed !
    Thank you for your kind help.
    Christian

    Christian from France wrote:
    It is not working because the table EQUIPE_AGENTS does not contains a row if the agent is not into any equipe.
    CREATE TABLE "OBSERVATOIRE"."EQUIPE_AGENTS"
    (     "EQUIPE_AGENTS_ID" NUMBER NOT NULL ENABLE,
         "EQUIPE_ID" NUMBER NOT NULL ENABLE,
         "AGENT_ID" NUMBER NOT NULL ENABLE)
    CREATE TABLE "OBSERVATOIRE"."AGENT"
    (     "AGENT_ID" NUMBER NOT NULL ENABLE,
         "GRADES_ID" NUMBER NOT NULL ENABLE,
         "NOM" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         "PRENOM" VARCHAR2(50 BYTE),
         "DATE_EMBAUCHE" DATE NOT NULL ENABLE,
         "DATE_DEBAUCHE" DATE)
    The only way to "know" if an agent is not into any equipe (team) is to search into the EQUIPE_AGENTS table, and if we do not find the ID of the agent into this table, then we know that this agent is not into any EQUIPE (team).
    I don't know ho to translate this into SQL.And that's what my query does. It uses an OUTER JOIN so that a result record is returned whether or not there is a record in EQUIPE_AGENTS. And the check for EQUIPE_ID is NULL restricts the result set to those where there IS NOT a record in EQUIPE_AGENTS.
    A more traditional way would be to use NOT IN or NOT EXISTS clauses, but they can prove inefficient.

  • TS3899 How do I change the address that my iphone sends when i send mail.  I have deleted the account but it still shows up as the account that will be replyed to if people hit reply.

    How do I change the address that my iphone sends when i send mail.  I have deleted the account but it still shows up as the account that will be replyed to if people hit reply.

    Hey There I didn't need to change it as it shows my correct name in my icloud account. The problem is on my Mac where it still shows my Full name as my partners name.
    For eg. if I send an email from "Mail" on mac and I use my icloud account then the name that shows up is my partners name when the email is received. If I send an email from the Icloud Mail box that I log into on my browser then the name that shows up when the email is received is my name which is correct.
    When I go into preferences in "Mail" on my Mac to change my name, the name is ghosted out and doesn't allow me to change it ! ? It is here that it still show my partners name ?

  • I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?

    I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?  I have authorized my computer but none of them are in my music now.

    You buy one and only one download.
    It is your responsibility to move/copy/backup your music.
    Certainly you did not update your ipod without making sure that you had transferred anything purchased on the ipod to your computer and included it in your regular backup copy of your computer.

  • The voice that was on when I first set up my ipad came back on and now I have to double click to get into my apps and can't use my apps because her voice is always talking.  How do I make her voice go away and my IPAD work like it should.

    The voice that was on when I first set up my ipad came back on and now I have to double click to get into my apps and can't use my apps because her voice is talking.  How do I make the voice stop and my IPAD work again. 

    If you've turned VoiceOver on then see if triple-clicking the home button turns it off, and then change what Settings > General > Accessibility > Triple-Click Home is set to.
    Otherwise, via 'the touch to select double-tap to activate' process you need to go into Settings > General > Accessibility > VoiceOver and turn it off
    The manual (http://support.apple.com/manuals/#ipad) also says that you should be able to switch voice-over off by connecting to your computer's iTunes :
    Turn VoiceOver on or off in iTunes: Select iPad in the iTunes sidebar. In the Options section of the Summary pane, click Configure Universal Access. Select VoiceOver, then click OK.
    So select Configure Universal Access at the bottom of the Summary tab and set Seeing to Neither

  • How do I change the way that my company name appears when googled?

    How do I change the way that my company name appears when it is googled?  Currently it only shows up as part of my company name followed by the website listed below and then the start of a description.  I would like to make it so my entire company name show up as the title when searched.  I used iWeb to create the site.  Please Help!  Thanks:)

    Put the whole company name in the title tag...
    http://www.iwebformusicians.com/Search-Engine-Optimization/Tags.html

  • No longer use this email account but how do you backup the email that is...

    No longer use this email account but how do you backup the email that is in the "example" folder, So that I can delete the account on my mail app?

    Not sure what you mean. Deleting a POP account only deletes the messages stored in the account’s mailboxes, not any messages stored in custom “On My Mac” mailboxes, if that’s what you mean. It’s not that Mail goes after your mail trying to delete as much as it can. It’s just that if a mail account is deleted, then its mailboxes cannot exist anymore...
    That said, instead of deleting the account right away, you can just disable it (i.e. turn OFF Preferences > Accounts > Advanced > Enable this account), leave it that way for some time, and delete it only after making sure you didn’t miss anything while the account was disabled.
    BTW, if you back up your data, and the ~/Library/Mail folder in particular, you won’t have to worry about accidentally losing anything as a result of doing something like that...
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.

Maybe you are looking for

  • AP Checks Report RTF or PDF??

    Hi all, I just started working on the AP Checks report in XML Publisher. I was wondering whether I need to use the RTF type or PDF type template. I was told that the PDF type template is better for check printing, because it allows us print the data

  • IWeb and Internet Explorer

    Hi all, I am a technician at a college, and we're using iWeb to publish websites for the students' coursework. Upon checking the health of the published pages, it is apparent that many of the students' work is not appearing in Internet Explorer corre

  • ODI Repository config issue

    Hi All, I had posted this query on Planning forum but I just thought this might be the right forum to ask the following doubt. I am new to ODI and I am trying to get it working. I have got the Master repository configured by replacing the sqlJDBC.jar

  • Random selection/movement/execution of any tool involving mouse click.

    Hi nice people, hopefully you have a good day before reading my post. Since there're already several posts about this issue, I'll save some trouble explaining the issue. From this forum: http://forums.adobe.com/thread/373520 http://forums.adobe.com/m

  • System tools tabs do not appear in admin console -web center sites

    Hi, System tools tabs do not appear in admin console of web center sites. I have set jdk path under serverstart menu of weblogic ,included classpath and preclasspath in setDomainEnv.cmd and have also inculded java_options under startweblogic.cmd ,sti