Is there a way to match all columns in a table?

Oracle 11.1.0.7:
Is there any way to say match all the columns of Table A with Table B? For eg:
Table A
id
name
Table B
id
name
Is there a way to say match all the columns with similar column in other in a select instead of doing "where A.id = B.id and A.name = b.name"? I am trying to write a compare script to test that replication is indeed doing the right thing.

user628400 wrote:
If 2 columns have null values does it match that too? I'll run some tests.It does
SQL> ed
Wrote file afiedt.buf
  1  with a as (select 1 col1, null col2 from dual
  2             union all
  3             select 2 col1, null col2 from dual
  4             union all
  5             select null, null from dual),
  6       b as (select 1, null from dual
  7             union all
  8             select null, null from dual)
  9  select *
10    from a
11  minus
12  select *
13*   from b
SQL> /
      COL1 C
         2
While I was doing the comparision I found that if column x in Table A has "null" and same column x in table B has "null" and if I do "where A.x = B.x" then it doesn't return the row. I am not sure why. Does "minus" work the same way?That's because NULL will never equal any value (including NULL) and NULL will never not equal any value (including NULL). That is
NULL = 1 is unknown (which maps to false)
NULL = NULL is unknown
NULL != 1 is unknown
NULL != NULL is unknown
If you want to compare columns that may have NULL values, you need to use IS NULL and IS NOT NULL or use the NVL function to map NULL values to a non-NULL but impossible value, i.e.
WHERE (a.x = b.x OR
        (a.x is null and b.x is null))or
WHERE nvl(a.x,-17) = nvl(b.x,-17)assuming that -17 is not a valid value for either a.x or b.x
Justin

Similar Messages

  • I now have 5 devices that access the "cloud" via Match. I also have 3 computers that need to be authorized. Is there a way to authorize all these computers/devices in such a way to allow everything to access and sync to the cloud?

    I now have 5 devices that access the "cloud" via Match. I also have 3 computers that need to be authorized. Is there a way to authorize all these computers/devices in such a way to allow everything to access and sync to the cloud?

    I had a problem with a 5.0.3 project that would cause 5.0.4 to crash. Apple asked for a copy of the project and later told me it was because there were some empty text layers. Apple is aware of the issue and is working on a fix.
    In my case I still had 5.0.3 on another Mac and could clean up the project. If empty text layers might be the problem, do you know someone with an earlier version who could open it and remove the empty layers? I'd be willing to give it a try if you'd want to send me the project.
    Ross Hunter

  • Is there any way to set default column widths in the Finder's Column view

    When my Finder windows open in column view, all the columns are always VERY wide. I have to then spend time resizing them to a managable width. Is there any way to set default column widths in the Finder's Column view?
    <Re-Titled By Host>

    No, because you can't set a columns view default.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Is there a way to download all songs from the cloud in one step?

    Is there any way to download all my songs from the cloud in one step?

    Ok, if you're wondering about an iOS device, there is no way to do that - you have to tap all of the cloud icons.
    But I do have a workaround.
    Store all the songs all locally on your Mac
    Disable iTunes Match on your iOS device
    Plug your iOS device into the computer (or this can be done with Wifi sync)
    Sync all songs to your device
    Now enable iTunes Match on your iOS device
    You now have all songs stored locally on your iOS device and iTunes Match is enabled, so your metadata syncs over iCloud, and you no longer have to plug your device in to update its music library. :)

  • Is there a way to place the column browser next to the sidebar vertically?

    I updated to the newest itunes and I am thoroughly frustrated trying to navigate it.  Is there any way to place the column browser next to the side bar?  Its really inefficient trying to scroll through it over the library.  Also I want my default interface to be as close to the previous version of itunes as possible (without the Song, Artist, Album, etc headings).  Basically I want the Songs head to be my default when I open itunes, but instead it always sends me to the thumbnails of artists.
    Sorry for the multipart thread, I'm just fedup trying to figure out all these issues myself.

    Take a look at this link, http://osxdaily.com/2012/11/29/5-tips-make-itunes-look-normal/

  • Is there any way to see all the bookmarked pins at once in Map App?!

    Hello!
    I have been making a route for my next mountaineering trip using the red pins on the map app! i have like 20 bookmarks. I could see all the bookmarks at once and it was so nice. but after I searched another place all the bookmarks dissapeared. now i can see only one of the bookmarks at a time! is there any way to see all of them together again ?! please someone help I put so much affort to find the correct route...

    Richard,
    Is there any way I can simply list everything at once?
    The best workaround I'm aware of comes courtesy of BMan1854: Create a Smart Playlist that will Match the following rule: Date Added is after 01/01/2001 (or whatever the day before the day that you first started your iTunes Library is). That playlist will show your entire library.
    Or is there a way so that when I add new podcasts it will get rid of the old ones automatically?
    Have you gone to the iTunes Edit menu > Preferences > Podcasts tab and checked out the various options listed in the Keep drop-down menu.

  • Is there any way to match the dock and USB to the iphone it goes with?

    We have several iphones in our household.  An iphone 3, two iphone 3S and two iphone 4S.  Our teenage daughter keeps snatching everyone's charger and then claims innocence.  Funny thing, everyone's chargers are all gone and she's the only one who has one left.  We've never caught her red-handed, but we know without a doubt she's the little thief in the house.  Is there any way to match the dock and USB to the iphone it goes with? 

    A charger is only connectors plastic and rubber you Can MAKE one yourself with wires so no memories

  • In ICal is there a way to see all of the text in all day events on the month view of the calendar.  Seems to wrap text only if there is a time on the event

    In ICal is there a way to see all of the text in all day events on the month view of the calendar?  Seems to wrap text only if there is a time on the event

    The paths won't agree on the two OSs so a simple XML import isn't likely to work.
    See Sync iPod/iPad/iPhone with two computers and, if needed, Make a split library portable. The techniques in the first link will work when moving the library between Windows and OS X as long as the library is "portable", but iTunes takes quite some time checking the database when the library is opened under a different OS.
    tt2

  • After I watch a podcast I delete it. When I go back in the next day it shows 500-600 episodes I have to delete manually. So 2 questions....  Is there a way to stop this from happening and is there a way to delete all. This is getting frustrating.

    After I watch a podcast I delete it. When I go back in there are 500-600 episodes and I have to delete each one manually. Is there a way to stop this from happening or is there a way to delete all at once. It's getting very frustrating.

    Had all these issues.  Bit the bullet and downloaded the Downcast App ($1.99).  Much better expereince and a lot more features.  Sad.

  • Is there any way to browse all sales excluding rental only & short films?

    Is there any way to browse all film sales excluding rental only & short films?
    I am finding the laborious process of clicking through page by page in cover view annoying to the extreme to search new additions to the available film sales lists every week or so. The display page is always slightly deeper than my window so it means having to scroll down to view the last row of covers and click next page.
    Apple... Is there any chance of having an auto scrolling (with pause and previous/next feature) film cover flow with description view of each film large enough to view the image, preferably filling the screen, perhaps also a feature in Front Row that will show available films to buy/rent in iTunes or an RSS screen saver that could give you a constant update of the last 10/20 films added?
    Something that will make the task of searching for titles you might like to buy less of a 'task' and more intuitive. I don't really want to browse by Genre and a Cover image only view tells you nothing about the film.
    If the screen in front of me gave me a constantly (controllable when required) changing view, similar to the content displayed in Front Row of a title you have selected i'd be happy.
    Message was edited by: Rob Wilton

    Could you please tell me how to view all the movies I have rented?

  • Is there a way to delete all email messages from inbox without checking each one at a time on my iphone 4?

    Whenever I want to delete messages in the inbox on my iphone 4, using v4.2.8, I have to manually check each one and then delete them the checked ones as a group. Is there a way to select all and delete them at one time? I love the phone and it is a little complaint, but I often get 50-60 work related messages which I scan then delete because the originals are on my work computer. Thanks.

    paulcb wrote:
    Also, the iPhone is not a standalone device and obviously doesn't have a full blown mail client... it's an adjunct to your computer.  If you want to delete a lot of emails, do it on your computer.  You could also log into your webmail using a browser on your iPhone and do it from there.
    You have a point, but you're just helping exposing the misery a little more:  I actually DO delete the emails in WebMail, very easily.  The problem is the sorry state of the Apple email client, that does not replicate those actions on the device, so I have to delete the messages TWICE--once on my computer, with a couple of clicks, and then on my iPhone, with a couple (hundreds) finger gestures.
    As to your point that the iPhone is not a standalone device:  that's nonsense.  The iPhone does a lot of things that users thought IMPOSSIBLE just 10 years ago.  Are you saying that the addition of a simple feature like a "Delete All Messages" button is too much for a mobile device?  Then what to say about Siri, a complex-beyond-our-imagination system that incorporates voice recognition, AI, searching and other hard-to-grasp technologies, all at our fingertips?

  • I lost my iPod touch and now have a new one.  Is there a way to transfer all the songs on have in iTunes onto the new iPod?

    I lost my iPod touch and bought a new one?  Is there a way to transfer all the songs I have in iTunes onto the new iPod?  I am scared I will lose it all when I sync the new one or that I have to start all over.   Please help!!

    You can do better than that. You can click on the Restore button that appears under your device in iTunes. This will restore your iPod to factory settings as if it were fresh out of the box. But don't worry. By doing a restore, you will then be given the option to "Restore from Backup." This will allow you to restore the state of your previous iPod!!

  • I just bought an ipad2, is there a way to transfer all my apps from my old ipad to my new?

    I just bought an ipad2, is there a way to transfer all my apps from my old ipad to my new?

    Backup the old iPad.
    Restore the backup to the new one.
    tt2

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • Is there a way to view all cameras in the timeline at once without creating a multicam sequence?

    Is there a way to view all cameras in the timeline at once without creating a multicam sequence?  Is there some kind of window I can open where they will show up?  I am scrubbing a timeline and I would like to see all the cameras at once.

    The multicam monitor only shows multiple clips at once when they are part of a mutlicam sequence. is there some reason you don't want to use them inside a multicam sequence for previewing?
    Here is a possible workaround, if your workflow circumstances will permit it:
    Apply a pip preset effect  to each clip in the timeline. Use UL, UR, LL, LR presets and up to four video tracks will display at once. If you need to see more than that, you'll need to tweak their position parameters by hand. When you're done previewing them all at once you just need to delete their effects from the Effects Controls panel.
    I know it's not that neat or quick, but it will let you see everything at once in the program monitor.

Maybe you are looking for