D
Damian
Hi, I have a table with FieldA, FieldB, FieldC.
I want to delete records based on FieldA, leaving me with one unique record.
The corresponding data in FieldB and FieldC is sometimes NULL - sometimes not.
How do I DELETE duplicate records based on FIELDA where FieldB and FieldC
contain the most amount of data (or contain the least NULL values) i.e.
Field1, Field2, Field3
A , data , null DELETE
A , data , data KEEP
A , data , null DELETE
B , null , null DELETE
B , null , data KEEP
B , null , null DELETE
C , null , null DELETE
C , null , data DELETE
C , data , data KEEP
Cheers, Damian
I want to delete records based on FieldA, leaving me with one unique record.
The corresponding data in FieldB and FieldC is sometimes NULL - sometimes not.
How do I DELETE duplicate records based on FIELDA where FieldB and FieldC
contain the most amount of data (or contain the least NULL values) i.e.
Field1, Field2, Field3
A , data , null DELETE
A , data , data KEEP
A , data , null DELETE
B , null , null DELETE
B , null , data KEEP
B , null , null DELETE
C , null , null DELETE
C , null , data DELETE
C , data , data KEEP
Cheers, Damian