Updated: 8/14/2003; 1:26:02 AM.
Distressed Fabric
Mcgyver5's Radio Weblog
        

Wednesday, January 29, 2003

Well, I spent a long time last night trying to apply a unique index to an Oracle table.  It kept telling me that it couldn't apply it because I had duplicate records already in that table.  I kept searching for the duplicates with the tried and true method of:

SELECT proposal_no FROM proposals A where ROWID > (

    SELECT min(ROWID) FROM proposals B

    WHERE A.key_values = B.key_values)

And wasn't finding them, no matter how much coke I drank.  The answer, as some probably have already guessed is that Oracle will recognize NULL values as duplicates but not equal in terms of Null = Null so NULLS won't show up in a query like the above.


5:39:46 PM    comment []


© Copyright 2003 mcgyver5.
 
January 2003
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Dec   Feb

Frequent Visits
Categories

Click here to visit the Radio UserLand website.

Subscribe to "Distressed Fabric" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.