hi - I am struggling to do the following:
consider a table like the one below. The actual table has 12 columns and over 900 rows. The values in each row have no 'doubles'.[tt]
ID F1 F2 F3 F4 F5 F6
1 12 15 8 19 34 21
2 18 10 29 11 77 9
3 34 8 12 15 21 19
4 8 15 19 21 34 12
5 1 12 54 45 99 33
6 1 33 12 99 45 54[/tt]
I want to find rows that have a distinct set of the 6 values, regardless of order. In the example given, rows 1, 3 and 4 all have the same 6 values. Similarly, rows 5 and 6 share the same 6 values. Row 2 has no matches.
Ideally, the output would show the values in each ROW descending from LEFT to RIGHT. Also, it would be nice if the ID column showed the first occurrence for each distinct set of 6 values. (as shown below)[tt]
ID T1 T2 T3 T4 T5 T6
1 34 21 19 15 12 8
2 77 29 18 11 10 9
5 99 54 45 33 12 1[/tt]
many thanks for any help. I realize that the tables aren't in normalized form, but I could convert them if it would help solve the problem.
consider a table like the one below. The actual table has 12 columns and over 900 rows. The values in each row have no 'doubles'.[tt]
ID F1 F2 F3 F4 F5 F6
1 12 15 8 19 34 21
2 18 10 29 11 77 9
3 34 8 12 15 21 19
4 8 15 19 21 34 12
5 1 12 54 45 99 33
6 1 33 12 99 45 54[/tt]
I want to find rows that have a distinct set of the 6 values, regardless of order. In the example given, rows 1, 3 and 4 all have the same 6 values. Similarly, rows 5 and 6 share the same 6 values. Row 2 has no matches.
Ideally, the output would show the values in each ROW descending from LEFT to RIGHT. Also, it would be nice if the ID column showed the first occurrence for each distinct set of 6 values. (as shown below)[tt]
ID T1 T2 T3 T4 T5 T6
1 34 21 19 15 12 8
2 77 29 18 11 10 9
5 99 54 45 33 12 1[/tt]
many thanks for any help. I realize that the tables aren't in normalized form, but I could convert them if it would help solve the problem.