greetings to all
I hope I'm not wearing out my welcome in this forum, but I am struggling with an SQL problem.
From a table like this...[tt]
ID C1 C2 C3 C4 C5
1 25 26 11 56 50
2 28 44 49 49 11
3 49 44 13 44 44
4 11 49 49 44 28
5 28 13 28 56 11
etc [/tt]
... I want to delete ROWS that are REPEATED in REVERSE. In the table shown, the 4th record must be deleted because its values (11,49,49,44,28) are in REVERSE order to those of the 2nd record (28,44,49,49,11). The output in this simple case would show rows 1, 2, 3 and 5.
I don't doubt that I could do this using VBA, but it would be slow. My actual tables have 10 data columns and a huge number of records.
Is there an SQL approach that might help here? I'm getting better at SQL, but this is still beyond me.
thanks in advance for any thoughts
Vicky C.
I hope I'm not wearing out my welcome in this forum, but I am struggling with an SQL problem.
From a table like this...[tt]
ID C1 C2 C3 C4 C5
1 25 26 11 56 50
2 28 44 49 49 11
3 49 44 13 44 44
4 11 49 49 44 28
5 28 13 28 56 11
etc [/tt]
... I want to delete ROWS that are REPEATED in REVERSE. In the table shown, the 4th record must be deleted because its values (11,49,49,44,28) are in REVERSE order to those of the 2nd record (28,44,49,49,11). The output in this simple case would show rows 1, 2, 3 and 5.
I don't doubt that I could do this using VBA, but it would be slow. My actual tables have 10 data columns and a huge number of records.
Is there an SQL approach that might help here? I'm getting better at SQL, but this is still beyond me.
thanks in advance for any thoughts
Vicky C.