Is there an easy way to compare two null columns?

I need to compare a significant number of columns between records in two tables for a data conversion. I really need a comparison that will return true if: 1) both columns are null; or 2) both columns are not null and equal. I want it to return false if: 3) one column is null and the other is not; or 4) both columns are not null and are not equal. I am trying to find records which are not exact matches.
I found documentation at oracle-base.com about the SYS_OP_MAP_NONNULL function that would do what I want, but I don't want to use this since it's an undocumented feature and my code will be in production for a period of time.
I would rather not have to use a construct like this for each and every column I'm comparing:
          a.col is null
          and b.col is null
     or (
          a.col = b.col
)Also, I know about the NVL function, but I'm comparing columns which are entered by users, and I'm not comfortable substituting any values for null because those values might actually exist in the data.

Performance wasn't the issue but they will be about the same anyway. The issue was avoiding the messy syntax needed to do the job.
Which of these looks easier to you if you had to understand and maintain the code or add new columns
>
I would rather not have to use a construct like this for each and every column I'm comparing:
          a.col is null
          and b.col is null
     or (
          a.col = b.col
>
or
1 = DECODE (a.col, b.col, 1)So if, like the OP, you had to 'compare a significant number of columns' which syntax would you use?

Similar Messages

  • Is there any easy way to compare LIKE Addresses from one table, which contains 3rd party data, to another table, our database source

    We have a 3rd party that is supplying us data and we need to compare the addressing between the 3rd party data to our source database addressing. I'd like to make it somewhat flexible meaning I'd like to somehow use the LIKE comparison rather than comparing
    the exact address values. (I have noticed that the 3rd party addressing sometime has a leading <space> at the beginning of the address...why I'd prefer to use LIKE)
    Is there any easy way to do this? Or does this dictate using a CURSOR and processing through the CURSOR of 3rd party data and plugging in the address LIKE as dynamic SQL?
    Please let me know your thoughts on this and I appreciate your review and am hopeful for a reply.

    Yes, it's possible and there are a variety of options but it's may not be for the faint of heart.
    The last time I did it, I ended up taking several passes at the data.
    1st pass was a straight up comparison with no modifications or functions.
    2nd pass was the same but with all special characters removed.
    3rd pass involved splitting the numeric portion of address and comparing just the street numbers and used a double meta-phone function (kind of like a soundex on steroids) to compare the street names.
    Jason Long

  • Is there an easy way to combine two existing icloud accounts?

    I had a Mobile me account which has a lot of my contacts and notes on that I'd like to transfer to my new Icloud account. Without having to enter in all the new contacts and I can't find a way to save my notes to the new account.
    An easy, simplistic way would be greatly appreciated!
    Thanks,
    Jen

    There is no way to combine the two accounts. However, if you simply want to transfer your data from an old account to a new one.  The easiest thing to do is, if you have a Mac or iOS device syncing with your account, make sure everything is synced up to date, then in Settings > iCloud delete the account, but save things to your device (you will be prompted). When you log in to your new account, move the local data to the new iCloud account.

  • Is there an easy way to append a new column of data to an existing xl file?

    I am modifying and existing program and the new needs are to have a compilation of averaging information to later be plotted with an xl graph. The VI will need to open the existing xl file, add the new column of data points without disturbing the existing columns of data, with a column header, and save the new file with the existing file name. The open and save are obviously not a problem, but I have never appended a new column, just rows in the past. The existing program is LV5.1, but i have a professional developement version of LV6i at my disposal if I need to convert it. Thank you in advance for any suggestions.
    Tim Fleeger
    Siemems Medical Systems

    TMF:
    INdeed there is. YOu want to use the "write characters to file" node. (If you're using numerical data, you might have to convert with one of the STRING conversion functions) YOu want to concatenate the string as follows: TAB/DATA/CARRIAGE RETURN. Also be sure to wire TRUE to the Append File terminal of the WRite Characters to File node.. Good luck!
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • I have two iTunes libraries I need to merge.  Both contain over 34,000 songs, so I cannot do this manually.  Is there an easy way to do this?

    I have two iTunes libraries I need to merge.  Both contain over 34,000 songs, so I cannot do it manually.  Is there an easy way to do this?

    Drag the media folder from one over to an open iTunes window.  Go away and have a long lunch.  Of course if you have a lot of common content you will be spending your next vacation sorting out the duplicates.  Oh, you can search the Internet because I am sure somebody has some wonder tool that purportedly prevents duplicates, not that I would trust any automated method.  I always deal with duplicates one by one.
    Consolidating Multiple iTunes Libraries - http://www.ilounge.com/index.php/articles/comments/consolidating-multiple-itunes -libraries-api1/ - Basically using consolidate/organize to make sure all your media are in one place, then copying media from a second library to the main one by simply adding the media as new files.
    Commercial software that purportedly helps merge libraries (not a complete list, nor have I tried any of them):
    http://supersync.com/
    PowerTunes - http://www.fatcatsoftware.com/powertunes/ (commercial software)

  • HT204053 can I purchase from two different stores ie store in New Zealand and Store in Australia and  how do I sync updates on applications?  Do I have to switch ID's in my settings each time or is there an easier way.

    can I purchase from two different stores ie store in New Zealand and Store in Australia and  how do I sync updates on applications purchased from either store?  Do I have to switch ID's in my settings each time or is there an easier way.  The trouble is I set up my appleid in new Zealand and so all icloud and itunes and app stores are under New Zealand Apple ID I have since moved to Australia. Im a real beginner at this stuff so bare with me pse.

    I'm in the same boat as you -- except that I manage both a school lab (volunteer job) and macs in the enterprise (pay job).  What I think we need is the Education Volume Purchasing Program
    http://www.apple.com/education/volume-purchase-program/faq.html
    Unfortunately this all seems a little rough around the edges -- for example, I have found updates for AppStore apps on the support.apple.com updates download site, but then when I install them via ARD they don't actually update the software.  (The AppStore icons still show as needing the updates, and the version info reports the old version.)  The documentation is also vague about which AppleID to use in which circumstance.  I think they just haven't finished thinking through the implications of the various procedures and policies upon the various kinds of customers.  When we deployed Mountain Lion on the school lab, we made an install usb and went around and installed it on each computer -- and it appears that you are on the honor system as far as paying for all of the licenses that you install.  We did!  But they appear to have no way to enforce it.
    So far, I have only deployed 9 Lion macs in my day job, and our "solution" to the AppStore showing updates problem has been to drag the AppStore icon off of the users' docks so they don't see them!

  • When i drag and drop to my ipod it wants to sync everything, but if i make changes to the syncing options and apply it wants to sync it all to make it work. i have 12000 songs and takes two days to sync everything. is there an easier way to drag and drop

    when i drag and drop to my ipod it wants to sync everything, but if i make changes to the syncing options and apply it wants to sync it all to make it work. i have 12000 songs and takes two days to sync everything. is there an easier way to drag and drop just one album without making settings changes?

    The first ever Sync of 12,000 songs to an empty iPod will take a while, but it shouldn't take two days.
    Once all 12,000 songs have been Synced to the iPod, subsequent changes to just one album will result in a very short Sync time. That Sync will include:
    the change to that one album
    play counts on iPod updated into your iTunes Library
    Smart Playlists updated: some complex Smart Playlists are not always updated by the iPod but have to wait for a Sync with the Library.
    housework - in other words, behind the scenes tasks that we don't need to see.
    Those subsequent Syncs do not sync every single song every time.
    So, stick with Syncing. If the first Sync of all your songs is taking too long, try syncing part of the Library (say one or two genres) the first time, a further part the second time and so on. After all, with a Library that large, manually managing the iPod will be a source of torture.

  • Is there an easy way to filter a 2-d array based on the values of two of the fields?

    Is there an easy way to filter a 2-d array based on the values of one of the fields. In my attached VI the output array has the following format:
    TimeStamp        Ident                Frame Type          Bytes    Data
    10:57:07.621   3AD00016   CAN Data Frame   8          0000000000000000
    10:57:07.622   3AD00017   CAN Data Frame   8          000005E000000000
    10:57:07.624   3AD00018   CAN Data Frame   8          0000000003300000
    10:57:07.625   2DC00000   CAN Data Frame   8          0000000000000000
    10:57:07.626   3AD00019   CAN Data Frame    4         0000030000000000
    I would like to delete any rows that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the above data the fourth row would be deleted. The only way I can see to do it is to form a 1-d array. Is there a better approach?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    CMM_SN_MULTI.vi ‏20 KB

    Hi chuck72352,
    after you have sorted your data, you can use the InRange Function. Combined with a "search 1D Array" you'll get the range you really want.
    Mike
    Attachments:
    ArraySubset.PNG ‏25 KB

  • Is there an easy way to find out if a user has a message in their voicemail.

    Is there an easy way to find out if a user has a message in their voicemail from the
    UNITY subscriber page? Or anywhere I can look to see if they do.  I don't have access to the exchange servers.  We are currently running UNITY 5.0(1).  thanks

    The only way you'll be able to do that is to login to Outlook Web Access, or possibly setup an IMAP client to that user's mailbox or have TAC run the DohPropTest in attach mode to return the contents of the user's inbox.  If the first two don't work, I'd go with the latter and let TAC help you verify if there are any messages in the inbox that are unread.
    Hope that helps,
    Brad

  • HT204406 after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?

         after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?  thanks.

    thanks for the reply.  guess i'll have to do that.  apple, not really happy with what you've done with this latest update.  have not been able to enjoy my music in my car since the update.  most of us dont mind changes that progress timely, but this was much more than just a progression.  this was a complete change.  and not a good one, at all.  thanks to the two people that replied.  appreciate it.

  • Recently got a new iphone but when i tried to sync it with my itunes, all my music appeared with a cloud beside it and doesnt play. Do i have to download each individual track by clicking on each cloud or is there an easier way? I have over 1000 songs!!!!

    Recently got a new iphone but when i tried to sync it with my itunes, all my music appeared with a cloud beside it and doesnt play. Do i have to download each individual track by clicking on each cloud or is there an easier way? I have over 1000 songs!!!!

    Hi. The two user tips both describe a sequence of steps that should get your library from the point where it threatens to wipe data from your device to where it is syncing normally, while recovering as much information as possible. It may still be necessary to wipe and reload the device but this should only take place once all the data that can be recovered has been recovered.
    Doing step 1 of 8 and then complaining things aren't the way you want them to be yet strikes me as premature...
    Since you appear to have all your media content, and we are discussing an iPod classic, not an iOS device, the main worries are already taken care of. What's left is ratings, playcounts, playlist membership and checked status. Since your device holds only part of your library at best you could only recover the missing data for the content that is on the device using third party tools.
    Recreating the previous checked/unchecked status of every track in your library from where you are now may not be that easy. Syncing with selected playlists has many advantages, one of which would have been that you would have a named playlist that could have been retrieved by 3rd party software if you had used this method.
    You haven't explained what caused your problem in the first place, but if you have a Previous iTunes Libraries folder holding old copies of your iTunes database (generated with each iTunes update) then it would be possible to restore the most recent of these and then update the library with any changes in your media folder.
    BTW Apple doesn't offer free support for this kind of issue with iTunes.
    tt2

  • Is there an easy way to switch mini dvi between monitor and tv?

    I would like to be able to connect my mini's dvi output to a either a monitor or my tv. I am not trying to get a display on both simultaneously. With a DVI to DVI cable between mini and monitor and a dvi to hdmi cable between mini and tv I think that I can swap dvi connections at the mini, but that looks like a pain. Is there an easier way to do this?
    I am about to order the dvi to hdmi cable. Is the mac mini's dvi port hot plugable or do I need to put the mini to sleep or shut down? Thanks,
    Owen

    Welcome to Apple Discussions!
    Without some extra hardware, you can't. The mini, like all Macs, looks for data from the display to determine what settings it makes available to the user, so with two displays connected and feeding their available configurations, the mini will get very confused! Even if the two displays have one or more common settings that will actually work, each time the mini boots or wakes and detects the display, one or other (or both) are likely to go blank.
    There are adaptors you might consider, such as those from Gefen, but they are not inexpensive. Have a look at http://www.gefen.com/kvm/dproductlisting.jsp?listingCategory=Switchers&productTy pe=dvi for a list of available switching options, though beware that for the most part, the need being met is for TWO sources and ONE display, not your ONE source and TWO displays.

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • I have many duplicates of my pictures on iPhoto there an easy way to delete these?

    I have many duplicates of my pictures on iphoto Is there an easy way to delete these, 23,000 pictures would take years to go through.

    Where are you seeing these duplicates?  In the iPhoto window or via the Finder?  If it's the Finder then you don't have true duplicates.  Each photo in iPhoto will have a minimum of two copies often three.  Then there will be additional faces images for each photo. 
    If you truly seeing duplicates while viewing in the iPhoto window there are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates
    However, do not ever remove files from iPhoto using the Finder.  That will corrupt the library.
    OT

  • Is there an easy way of making DVDs using iMovie without iDVD?

    I can't seem to make / share / export a dvd in iTunes that can be read in a dvd player. The new operating system doesn't support iDVD so I can't easily make a dvd. I seem to be able to create a file with an m4v extesion and it looks great on my Macbook... only the Macbook.  I tried downloading two different conversion applications that could create an mp4 file but it isn't working and it is messy. Isn't there an easy way?
    Thanks, Brigid

    If you have an early 2011 MacBook Pro it would have come with Snow Leopard which did include iDVD.  If you upgraded to Lion iDVD will still be there.  Lion does support iDVD - i.e. it will still run on Lion.  It's just that Lion no longer includes iDVD if you get it on a brand new system.  So if iDVD is still there in your Applications folder it will still run under Lion.

Maybe you are looking for

  • Failure to install Creative Cloud Master for Windows

    Hi all, I am using an Enterprise Creative Cloud and have packaged the Adobe CC Master for Windows. I have followed the rules of installation by installing Acrobat XI first. Upon installation of Acrobat, I proceeded to install Creative Cloud by going

  • Need to deactivate two computers associated with my PSE 7 serial number.

    Hi, I've installed PSE 7 on a new computer but my serial number is not working. I assume the reason is I need to deactivate the two computers associated with the serial number from previous installations. I have contacted the chat/help desk and was t

  • Oc4j and international character sets

    Does anyone know if there is a problem in oc4j concerning international charactersets support? My pages contain non-english characters and so i use utf-8 characterset. When the page is created by a servlet the characters are displayed correctly, but

  • Function Module to find Fully Invoice PO

    Hi all,        Is there any function module to find Fully Invoice PO?        Or       Tell me the tables from where can i get the details of Fully Invoiced PO?

  • InternalDCAM - How to tune InternalDCAM application module (ADF - 11.1.1.6)

    Hi All, We are load testing our application (Oracle ADF 11.1.1.6) using 100 concurrent users. All of our application modules are tuned with initpoolsize of 100, minavailablesize of 100 and recyclethreshold of 100. These arguments intended to not pass