I have a database with several fields and over 20000 records. However, to simplify the problem, suppose I had three fields, A, B and C:
A | B | C |
1 X Y Z
2 X Y
3 X P
...
I want to remove records like #2 that are identical to another record, #1, in fields A and B, but is blank in field C, where #1 is not. If I index the file A->B->C, #1 always gets deleted to KeyViol instead of #2. Is it possible to do this, preferably using a query or other non-ObjectPal procedure? (I've never used ObjectPal, but if that's the only option, please post it and I'll learn it.)
A | B | C |
1 X Y Z
2 X Y
3 X P
...
I want to remove records like #2 that are identical to another record, #1, in fields A and B, but is blank in field C, where #1 is not. If I index the file A->B->C, #1 always gets deleted to KeyViol instead of #2. Is it possible to do this, preferably using a query or other non-ObjectPal procedure? (I've never used ObjectPal, but if that's the only option, please post it and I'll learn it.)