Finding those missing ...

Hallo everyone,
I have one large table covering two periods and would like to find codes (article numbers) in one period which do not appear in the other.
With two separate tables or a smaller volume of data this is quite easy as you can either connect with a left join and look for NULL or create a subquery and use a NOT IN (SELECT ...) clause.
However, I have large volumes of data (130000 rows per selection) and am having performance issues with this one.
I am on the point of 'copping out' and building a mechanism to pull the data out into separate tables and compare it there but this is a lot of effort.
Maybe someone has a trick for doing this comparison that might help me avoid using all those extra tables?
Many thanks,
Alan Searle

Hi,
tested this one with about 130000 rows in each table; took about 1 second:
select *
from (
      select * from t_1
      union
      select * from t_2
      minus
      select * from t_1
      intersect
      select * from t_2
      );Regards,
Gerd

Similar Messages

  • I have LR5. On the left column Catalog/ All photographs I have 11557 photos but on the strip under says: All photographs 9492 of 11557 photos. Where I can find those missing 2065 photos?

    On my Lr5, on lefhand panel stays: All photographs 11557. On the lower strip stays:All Photographs 9492 of 11557 photos. Where can I find those missing 2065 photos?

    You have 2065 photos that are in stacks that have been collapsed, meaning that those pictures are not currently visible in 'All Photographs'.
    You could use 'stacking>expand all stacks' to open them all if you wanted them to be visible.
    M

  • When I updated the new version and used icloud, some of the apps are missing, how can I find those apps(but i was not using my account to download some apps before). Please advise.

    When I updated the new version IOS5 and used icloud, some of the apps are missing, how can i find those apps (but i was not using my account to download some apps before).  Please advise.

    They are free to iOS 7 users who have activated their NEW device on Sept 1 2013 or after. They are NOT automatically free with iOS 7.
    AirDrop is only compatible with iPad 4th gen and iPad mini. iPad 3rd gen and below do contain the necessary hardware for AirDrop. Also, AirDrop is only compatible between iOS devices. You cannot AirDrop between iOS device and Mac OS.

  • HT1848 I purchased alert tones in itunes and updated my itunes.  Now my alert tones do not show up, although if I were to go re-purchased those items, it says I already purchased them.  Where do I find those tones and how do I get them back into my phone?

    I purchased many alert tones in itunes and then updated my itunes.  Now my alert tones do not show up, although if I were to go re-purchase those items, itunes says I already purchased them.  Where do I find those tones and how do I get them back into my phone without having to repurchase????  This is so frustrating!  Please Help!

    1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
    2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
    tt2

  • I transferred my music to a larger hard drive and when I went to sync to iTunes there half my library had a '!' next to the songs. After I located one song the question 'would you like itunes to find other missing files' came up. What does this mean?

    I recently transferred my music from one external hard drive to another and when I went to sync it to iTunes half my music had a '!' symbol on the left side, which meant that the songs weren't located. When I went to locate one of the songs it asked me if I wanted iTunes to find other missing files, which I said yes. What happens next and what is iTunes doing to find the missing files? 

    iTunes is a database.  When you import songs to the database, it records the location of that song, so that when you play, or sync the song iTunes knows where to look for it.
    When you moved your music to a different location, iTunes can't find it because you didn't tell iTunes that you moved the music.
    You'll have to re-add those songs that you moved to your itunes library.  Your best bet is going to be to delete all the songs in your library and then go to File > Add folder to library > and then find your music folder on the new external hard drive.
    Also, the external drive HAS to be connected in order for iTunes to find it.

  • I saturated all the available iPad (3rd. generation) screen space (home screens or desktop space) with apps, and the apps that got bumped out of the last screen, mysteriously disappeared? Where are those missing quick lauch app icons?

    Running my 3rd generation iPad on iOS 7.0.4, I saturated all the available iPad screen space (which would be the 15 home screens or desktop worth of space) with apps, and the apps that got bumped out of the last screen space mysteriously disappeared. Where are those missing quick lauch app icons now? The apps are still installed and can be searched/accessed through the finder, but they no longer have a user friendly access. How can I solve this problem?

    Christopher Doryan wrote:
    Hi Hexonxonx, thanks for trying to help, but next time please read the entire discussion, in oder to better comprehend what is being asked. The reason being is that your answer added nothing to what had already been mentioned.
    Like I said, I was aware it was possible to access the apps through the finder, but the question revolved around how to recover the quick launch app icons for certain vanished apps.
    Wow, kind of a snotty response to someone who was taking their own time to offer help.  Whether you thought it was helpful or not, didn't deserve such an unkind retort.  Maybe when you realize we all just users here trying to help others like you, who have issues and we don't get anything in return for the countless hours some people here spend offering that assistance, you'll maybe be a little less quick to be critical.
    Just sayin.......
    Oh and Meg offered the right answer.  Put your Apps in Folders, which will create extra space for the apps which have disappeared.

  • I bought an album on my iPhone and it never transferred to my iTunes account. It has disappeared now and I'm not allowed to buy it again. How can I find my missing music album or have the option to purchase it again?

    I bought an album on my iPhone and it never transferred to my iTunes account. It has disappeared now and I'm not allowed to buy it again. How can I find my missing music album or have the option to purchase it again?

    Hello bubblegirl2,
    Thank you for the details of the issue you are experiencing with your purchased album.
    First, I recommend trying to download the album from you list of past purchases.  Use the steps in the section titled "Download previous purchases on Mac or PC > iTunes Store" in the following article:
    Download past purchases
    http://support.apple.com/kb/ht2519
    If you have tried those steps and still do not see the album, it may be that the album is hidden.  Follow the steps below in iTunes on your computer to check if it is hidden and unhide it:
    To unhide your purchases
    Open iTunes on your Mac or PC.
    If you're not already signed in, choose Store > Sign in.
    Choose Store > View My Account. (You may be asked to enter your password again).
    On your Account Information summary, scroll down to the "iTunes in the Cloud" section and click Manage.
    Choose a content type by clicking Music, TV shows, Apps, or Books from the top.
    Click the Unhide button next to the item you would like to restore.
    Note: If the item you are unhiding is not already downloaded on your computer locally, it will begin downloading automatically.
    iTunes Store: Hiding and unhiding purchases
    http://support.apple.com/kb/ht4919
    If you are still not able to download the album, you can report the issue with this purchases using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have another computer that a virus may have taken over and I cannot log into it anymore.  I just downloaded Itunes on a new computer but most of my songs are not on there.  Is there a way to still access or find those songs?  Remotely or another way?  I

    I have another computer that a virus may have taken over and I cannot log into it anymore.  I just downloaded Itunes on a new computer but most of my songs are not on there.  Is there a way to still access or find those songs?  Remotely or another way?  Or do I need to take it to a tech to get my files off of my hard drive?

    Edit > Preferences > Store check Music under Automatic Downloads.
    Open the iTunes Store from left hand column, then select Purchasedfrom the column on the right, click the Not In My Library button and select the tunes you want to download again.
    That said, you seem to be under a misapprehension as to how iTunes works, or at least how it has worked in the past. It has, until recently, been up to you take care of your purchases once they have been downloaded. You had a one-time download which you were reminded to back up. With the recent change to this policy you can at least download your store purchases again, but having a personal backup of your iTunes store purchases, stuff purchased elsewhere and files ripped from your CDs will still be preferable to gathering all the stuff together again in the event of a disaster.
    For a backup strategy see this User Tip.
    tt2

  • HT201210 I'm trying to update my iOS to 6.0, using iTunes (with my 4s connected via USB and WiFi is on also). I get a message that 'there are purchased items on my iPhone that have not been transferred to my iTunes library. Yet, I can't find those items!

    I'm trying to update my iOS to 6.0, using iTunes (with my 4s connected via USB and WiFi is on also). I get a message that 'there are purchased items on my iPhone that have not been transferred to my iTunes library. Yet, I can't find those items! Help!  There is not error message number just the text message. I've searched for an answer but have found nothing on "transfering items purchased to your iTunes library".

    Right click on your device icon on the left pane of iTunes and click on transfer pur....

  • I backed up my ipod during a windows backup.  how do i find those ipod files(not itunes) in the windows backup files? i've tried searching and i can't find

    i backed up my ipod during a windows backup.  how do i find those ipod files(not itunes) in the windows backup files? i've tried searching and i can't find

    so i plugged in my ipod and it asked if i wanted to backup the files before restoring it. 
    Do you mean iTunes asked if you wanted to backup files before restoring? If so the it is in the location I posted. You don't need to navigate to the backup. Once your restore your iPod it will ask if you want to restore from a backup and present you with the backups made before hand.
    To restore information from a backup, use one of the following methods after connecting your iOS device to the computer with which you normally sync:
    -Click the File menu and select Devices > Restore from Back up.
    Or
    -Open the iOS device's Summary tab. There are two ways to access this:
    -Click the device button in the upper right corner. (If viewing the iTunes Store, click the Library button in the upper right corner. The device button will then be visible.)
    -From any view in iTunes, click the View menu and select Show Sidebar. Select your iOS device in iTunes under Devices.
    -Click the Restore Backup button.

  • Problems with "find nearby missing photos", not working like it should in LR4

    After I imported photos into LR4 I decided to split the event within the same folder creating 2 subfolders and proceeded to move the files within the finder. Went to LR4 and synchronized the folder but it didn't fix the file location on the missing files. So I tried finding individual files and checked the "Find nearby missing photos" but this doesn't seem to work like it did in LR3, because it won't find any nearby missing files even though they are right there new to each other in the same folder.
    I don't want to dremove them and re-import because I have added ratings and I fear I would loose this info if I did that...

    Your assumption that you would loose your ratings and develop settings is correct, if you would re-import.
    Reimporting is never a good idea.
    For the rest you have two alternatives: either you reconnect one image after another, or you undo on OS level what you did in the first place, then execute the move inside LR.
    Depending on how many images you moved this could actually be the fastest route out.
    "Find nearby missing photos" did not work reliably for me either in LR3. I have never found out when it did and when not, so I have preferred to learn how to perform any such operation inside LR.
    Another valid question is why you do not use collections for your desired split , and leave the folders as they were.
    According to my prejudice MAC users would not be as conservative in sticking to folder structures as Windows users..;-))
    Once you master LR folders could be very unimportant storage buckets, as every angle for organizing your images would be covered by (smart) collections and keywords and other metadata.
    Good luck, Cornelia

  • Scroll bar in finder is missing

    Suddenly the scroll bar in Finder is missing in Pictures. Any idea how can I get it back?

    Hi Hawaiian Starman,
    I'll confess that at this point I am feeling so overwhelmed I can't believe it and yet I seem to know more than most of my friends and associates about computers when it's obvious I know so little. Not a great place for a society to be racing to, but ... First, I have looked for the scroll bar in various views on my initial account. It will show up at times but only scrolls an inch or so and then other times--nothing. To be honest, I've never seen a computer act so strange.
    I looked at Carolyn's suggestion and thought geez! I want my computer to work--I didn't say I want to work for Apple and figure all this out. Reload this but be careful of this and this and this. I thought go to what HS says and try his solutions out.
    I created another account, went into it and naturally I can see no scroll bar because I don't have any pictures. What I was shooting for is some degree of normalcy so I can see the picture files I have. I'm beginning to think it may be easier for me to keep inventing ways to get past the peculiar curves this Mac wants to toss at me! I can't operate under the new account because it doesn't have a printer assigned to it, there's no Microsoft Office program ... and of course I somewhat concluded that the answer is assigning everything in the one account to the other account and that's ... pardon my novice attitude ... like hard! The hardest thing I ever had to do with a Dell is re-install Internet Explorer and I thought that was complicated.
    Now that I've gone on and on, what am I missing in concept about creating a new account? How can I check for a scroll bar when it has nothing to scroll .... without signing up for brain surgery 101? Any hope here? I appreciate your help. The dedication you have to understanding malfunctioning computers is indeed impressive.

  • I imported vacation photos, got the color wheel and did a force quit. Now I can't find any of those photos, and of course I deleted them from the SD card when I imported them. Where can I find those photos?

    I imported vacation photos from my cameras SD card and deleted them when the import was complete. Then I moved them from Events into an Album. When trying to move 2 photos as once to another album I got the color wheel and locked up. I did a force quit but when I go back into iPhoto none of the recently imported photos appear - not in Events, the album, trash, etc. Where can I find those photos?

    backup the iPhoto Library and launch iPhoto while depressing and holding the option and command keys until the first aid window appears - rebid your iPhoto library
    LN

  • How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or

    The situation:
    I want to use basetext font, but some of the glyphs are missing in it, and are highlighted with pink boxes. common font [stix, etc.] have much more glyphs than basetext font. I can apply common font [stix, etc.]manually for each of the missing glyphs or insert two character and use kerning set it up, but it is tedious.
    Question:
    How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or insert two character and use kerning set it up?
    Any one know how to do this?
    Thanks in Advance,
    ~Jack

    Try Peter kehrl's script
    http://www.kahrel.plus.com/indesign/missing_glyphs.jsx

  • How to find those different namespaces in schema?

    Hi,
    I heard that schema contains different name spaces. how to find those different namespaces in schema?
    I checked with this but it is throwing "table or view doesn't exist".
    select namespace from v$librarycache;
    Thanks
    Praveen

    Are you referring to this? From the SQL Language Reference manual under Schema Object Names and Qualifiers
    7. Within a namespace, no two objects can have the same name.
    The following schema objects share one namespace:
    Tables
    Views
    Sequences
    Private synonyms
    Stand-alone procedures
    Stand-alone stored functions
    Packages
    Materialized views
    User-defined types
    Each of the following schema objects has its own namespace:
    Indexes
    Constraints
    Clusters
    Database triggers
    Private database links
    Dimensions
    Because tables and views are in the same namespace, a table and a view in the same schema cannot have the same name. However, tables and indexes are in different namespaces. Therefore, a table and an index in the same schema can have the same name.
    Each schema in the database has its own namespaces for the objects it contains. This means, for example, that two tables in different schemas are in different namespaces and can have the same name.
    Each of the following nonschema objects also has its own namespace:
    User roles
    Public synonyms
    Public database links
    Tablespaces
    Profiles
    Parameter files (PFILEs) and server parameter files (SPFILEs)
    Because the objects in these namespaces are not contained in schemas, these namespaces span the entire database.Which is why you can do:
    SQL> create table t (id number, descr varchar2(10));
    Table created.
    SQL> alter table t add constraint t check (mod(id,2) = 0);
    Table altered.
    SQL> create index t on t(id);
    Index created.
    SQL> create trigger t
      2  before update on t
      3  begin
      4     dbms_output.put_line('T Trigger');
      5  end;
      6  /
    Trigger created.but not:
    SQL> create view t as select * from t;
    create view t as select * from t
    ERROR at line 1:
    ORA-00955: name is already used by an existing objector
    SQL> create procedure t
      2  begin
      3     null;
      4  end;
      5  /
    create procedure t
    ERROR at line 1:
    ORA-00955: name is already used by an existing objectJohn

Maybe you are looking for