Those values which are there in the IN list but  not in the table.

Hi All,
We have a table global_title_isbn having 18 columns with primary key on title_isbn. This table contains approx. 10 million rows.
Normally what we used to get was 10-15 comma seperated list of ISBNs for some business process , for them we have to check into the table to figure out what all ISBNs are not there in the table.
But now a days we are getting a list of more than 100 ISBNs and there are times when only less than 40 ISBNs exist in the table. So figuring out what all ISBN are not there in the given list is very tiresome job.
Is there any way using SQL we get list of only those ISBN which are not there in the table from the list,
eg
select * from global_title_isbn where title_isbn in ( a comma seperated list);
will give me those ISBNs which are there in the global_title_isbn and in the given list..
Desired O/P
a list of ISBN which are there in the given list but do not exist in the table.
PS:-- I have only read access . I cannot create any table/view etc and PLSQL stored procedure.....
Regards
Vineet

I see no problem with my solution.
See examples below:
create table global_title_isbn (title_isbn varchar2(10));
insert into global_title_isbn values ('8888888');
commit;
-- your_string is '9999999','8888888','17262','19283263','328732'
select rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), '''') as title_isbn
  from table(xmlsequence
              (extract
                (xmltype('<coll><e>' ||replace(:your_string, ',', '</e><e>') ||'</e></coll>')
              , '/coll/*') )
            ) list_isbn
where not exists (select 1
                     from global_title_isbn gt
                    where gt.title_isbn = rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), ''''));
output:
9999999
17262
19283263
328732
drop table global_title_isbn;
create table global_title_isbn (title_isbn number(10))
insert into global_title_isbn values (8888888);
commit;
-- your_string is '9999999','8888888','17262','19283263','328732'
select rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), '''') as title_isbn
  from table(xmlsequence
              (extract
                (xmltype('<coll><e>' ||replace(:your_string, ',', '</e><e>') ||'</e></coll>')
              , '/coll/*') )
            ) list_isbn
where not exists (select 1
                     from global_title_isbn gt
                    where gt.title_isbn = rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), ''''));
output:
9999999
17262
19283263
328732

Similar Messages

  • Parameter field should pick the values which are there in the value table

    Hi Experts,
    I have a requ. where in a parameter field should pick only the values which are there in the value table for that particular field and should not allow the User to put in any other value.
    The value table is created in the program manually.
    EX:If the value table contains two sales organization VE03 and VE65 then the field shouldn´t allow anyother value other then those two.
    Thanks and Regards,
    Arun

    Try using a listbox.
    report  zrich_0001.
    type-pools: vrm.
    data: ivrm_values type vrm_values.
    data: xvrm_values like line of ivrm_values.
    data: name type vrm_id.
    parameters: p_vkorg(4) type c as listbox visible length 20.
    at selection-screen output.
      name = 'P_VKORG'.
      xvrm_values-key = 'VE03'.
      xvrm_values-text = 'VE03'..
      append xvrm_values to ivrm_values.
      xvrm_values-key = 'VE65'.
      xvrm_values-text = 'VE65'..
      append xvrm_values to ivrm_values.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = ivrm_values.
    at selection-screen.
      if p_vkorg is initial.
        message e001(00) with 'Please enter a sales org'.
      endif.
    Regards,
    RIch Heilman

  • I am trying to delete songs from itune 11 library and i want it to delete the song from my hard drive as well.  All my songs are in the music folder but not in the itunes folder??  itunes did not prompt me to move file to trash nor is there an option??

    I am trying to delete songs from itune 11 library and i want it to delete the song from my hard drive as well.  All my songs are in the music folder but not in the itunes folder.  itunes did not prompt me to move file to trash nor is there an option to remove file to trash bin.  How can i  delete songs from both the itunes and hard drive at the same time?

    aespinoza2210 wrote:
    could it be in the itunes folder or does it have to be in the itunes media folder, which is within the itunes folder??
    A Espinoza,
    The iTunes Media folder is set in Preferences > Advanced, and is the key to most iTunes folder organizational activities.  So I doubt that the automatic deletion will work for files that are somewhere else within the folder structure.
    However, I have not experimented with that issue in quite a while, so you are welcome to give it a try in iTunes 11. 

  • Suddenly all my albums in Photos are blank.  The photos are still in the camera roll but not in the albums.  What happened and how do I recover them all?  Are they in my icloud?  Also the photos are clear as thumprints but when I touch it to zoom are blur

    Suddenly all my albums in Photos are blank.  The photos are still in the camera roll but not in the albums.  What happened and how do I recover them all?  Are they in my icloud?  Also the photos are clear as thumprints but when I touch it to zoom are blurry.  what gives?  They were all completely clear and in the albums when I last used my ipad??  Would doing the "Reset" under General settings do that?  When I returned from Europe I reset my ipad to get it in the right time zone etc. 

    Reboot.   Press and hold the home and sleep buttons until the apple logo appears. Ignore the red slider.

  • Is there a way to purchase an app from the App store but not use the money I currently have in my iTunes account from a gift card?

    Is there a way to purchase an app from the App store but not use the money I currently have in my iTunes account from a gift card?

    The only way I know is to purchase it as a gift.

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

  • One of my movies I bought shows up on my mac in the itunes library but not on the apple tv.

    I own about 30 movies on my apple tv and one of my movies I bought shows up on my mac in the itunes library but not on the apple tv. How do I fix this issue and get it to show up on my apple tv?

    Two things to check
    1st
    Settings
    Mail, Contacts, Calendars
    AccountsHow many accounts are there?
    2nd
    From Home screen press Mail app
    Press the top left button (next to Inbox)
    You'll see all the Inboxes for the accounts present
    You'll know either way whether one or more accounts has been setup.
    SIDE NOTE: Not too sure about MobileMe though, might be integrated with iCloud, not sure.

  • In downloading my Events from iPhoto on my Mac to my iPad Air, the Events arrive in the proper order but not showing the Key Photo.  At the same time, the Events arrive in iPhoto on the iPad in totally random order but showing the Key Photo.Why?

    In downloading my Events from iPhoto on my Mac to my Ipad Air, the Events arrive in Photos in the correct order but not showing the Key photo. At the same time, the Events arrive in iPhoto in a totally random order but with the Key phto showing. Why? of course and is there a way to shift the order in Iphoto and get a Key photo in Photos?

    HHi, thank you for the reply. I have checked my iPad and iPhone and neither has iCloud Photo Library (Beta) enabled. Turned off in both. Photostream is turned on.
    i tried to sort it out  by dragging all the photos to Events on the Mac and then deleting them from iCloud - (left hand side of iPhoto under the section 'Shared'). the photos now show up in Events. I did force quit but the issue remains. The message reads ' photos are bing imported to the library. Please wait for import to complete.'
    i can't empty iPhoto trash either. The message read "Delete error. Please wait for import to complete.'
    WHen I was moving the photos to the Events I always had a message about duplicates - to the effect that the photos already existed, did I want to import them? I clicked on Yes, import all duplicates. But when it showed the images - duplicates side by side - one showed the photo and the other was blank.
    I really don't know what to do! And I don't know how to handle my iOS devices. Is it to do with the large number of photos? Any help, advice appreciated.

  • My Sigma 17-70 f2.8-4DC is on the supported lens list but not in the Profile Downloader.

    My Sigma 17-70 f2.8-4DC is on the supported lens list but not in the Profile Downloader.
    How can I download the profile?
    Thanks very much.

    The “Lens Profile Downloader” is not where you get lenses “on the list”, rather it is where you get lenses that third-parties have provided, so usually for lenses not on the list.
    I see three Sigma 17-70 f/2.8 DC variations for 5 different camera manufacturers so I’d expect you should see the lens listed if you select a raw photo.  There is no profile for JPGs.
    Here are the profiles for Canon:
    Canon (SIGMA 17-70mm F2.8-4 DC MACRO OS HSM C013) - RAW.lcp
    Canon (Sigma_17-70mm_F2.8-4.5_DC_MACRO_HSM ) - RAW.lcp
    Canon (Sigma_17-70mm_F2.8-4_DC_MACRO_OS_HSM ) - RAW.lcp
    What is your actual situation, are you looking at a JPG that won’t have a lens profile, or is the lens profile not in the list for your camera or is it just not being found automatically when you set Lens Profile Setup to Auto.

  • HT204370 A movie shows in my purchased list but not in the Movies list...

    A movie shows in my purchased list but not in the Movies list...

    The purchase history on your iTunes account will only show purchases from the iTunes stores (iTunes, app store, ibookstore, Mac app store), not from Apple online or bricks-and-mortar stores.
    Does anything show on your credit card ? If the email is genuine then it's possible that your and their email addresses are similar and that they gave the wrong id (or the store typed it incorrectly), it doesn't necessarily mean that anybody has access to your account.
    For the contact, you will initially just receive an acknowledgement email, the proper reply may take 24 (possibly 48) hours.

  • Can Management Studio connect to a server that is on the same network but not on the same domain?

    Should management studio be able to connect to an instance of an sql server that is on the same network but not on the same domain?  I am trying to have it do so but am unsuccessful, so to continue to troubleshoot what the issue might be I need to know
    whether I am embarking on an exercise in futility.

    Hello,
    That's your issue!
    Since you're attempting to use Windows Authentication you'll need to start the SSMS process under the domain credentials of the domain account that has access to that SQL Server. Otherwise windows is going to send you local user token which is going to quickly
    be rejected as your local computer user account is not the correct domain account.
    You can do this by either using shift+right-click run as different user or from the command line using RunAs /user.
    In either case, if you want to use Windows Authentication you'll need to run the SSMS process as that domain user so that you can pass a valid security token.
    Edit:
    I read that backwards... If it's not on any domain (or member of a workgroup) you'll have a really hard time in using windows authentication as you're limited to LOCAL users on that machine. Thus you could really only use windows auth if you were logged
    in locally on that server. I'd either setup a SQL Login for this or join it to a domain.
    Sean Gallardy | Blog |
    Twitter

  • HT2513 my iCal shows events in the "month" view but not in the "week" view? why is that?

    my iCal shows events in the "month" view but not in the "week" view? why is that? doesnt sync automatically all the time only sometimes

    my iCal shows events in the "month" view but not in the "week" view? why is that? doesnt sync automatically all the time only sometimes

  • Just got a new MacMini.  Migrated files using Time Machine.  However, now, on Launchpad, I see several Firmware updates that were relevant for the old machine, but not for the new one.  How do I get rid of these updates?  They won't delete!

    Just got a new MacMini.  Migrated files using Time Machine.  However, now, on Launchpad, I see several Firmware updates that were relevant for the old machine, but not for the new one.  How do I get rid of these updates?  They won't delete!

    Only thing I can think of is trying this Lion trick...
    http://www.cultofmac.com/106030/how-to-nuke-lions-launchpad-and-start-over/10603 0/

  • How do I access all the Arturia 49 key analog library to Garage Band? I see the analog library but not all the SW instruments?

    how do I access all the Arturia 49 key analog library to Garage Band? I see the analog library but not all the SW instruments?

    Alex,
    have you tried everything in this thread? The problem seems to be different for everybody:
    If nothing helps try dagon's full monty for a reinstall:
    Re: GarageBand '11 won't download additional loops
    Or a manual download using the Terminal as mteep suggests:
    Re: GarageBand '11 won't download additional loops
    Léonie

  • I am not able to format my ipod classic as it is showing in the widows 7 but not in the itunes and when i try to format it, i am not able to format it

    i am not able to format my ipod classic as it is showing in the widows 7 but not in the itunes and when i try to format it, i am not able to format it i am not able to foramt it..

    Hello Ephremekka
    Start your troubleshooting with the article below to get your iPod Classic to show up in iTunes to be restored.
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/TS1363
    Regards,
    -Norm G.

Maybe you are looking for

  • Error when creating link to documents from material

    Hi all, while creating the purchase order the error message "Error when creating link to documents from material 61260224060" is displayed. why this error message is displayed.? Regards, GaneshRaja

  • Macbookpro won't turn on

    It was completely normal before i went to bed. The next morning, it just won't turn on. I did not shut down my macbook, it was on charger the whole night. Now the battery life indicator won't show any lights when button is pressed. There isn't chargi

  • Bill of Exchange (Account Payable)

    Hi Experts: I was trying to configure Bill of Exchange - For both Account payable as well as account receivable. Account Receivable Succeed. But have some problem in BOE Account Payable. Can any one tell me Step by Step Procedure to configure and use

  • Clock and Date Reset

    I have Macbook Pro Mid 2010 running on Lion 10.7.4 Every time I run out of battery and automatically shutdown, I get a message that my date is set to before 2001 and causing applications to behave irradically when I boot up for the first time. I need

  • Motion Codec in FCP

    If I just save a Motion project (not export it) just save it and then open the Motion file in FCP by going file import....the Motion file comes into FCP and in its item properties for compressor it reads ......motion codec decompressor...... What is