Specialized listing of queried duplicates

B

Bob

select orderno, ssn from test
group by ssn,orderno order by orderno

Not sure if this will give you the flexibility you need,
but may get you in the right direction.
-----Original Message-----
I have been in the process of eliminating duplicates in
my filing system using the find duplicate query. I have
just seeked all the duplicate records out of my system,
and I found that it was very efficient to have the
records listed in order of file #.
Now I would like to list the records in a different
order: The lowest numbered record will be first,
followed by all records that have a matching SSN.
(Usually 1, possibly 2 or 3) Then, I would like the next
lowest record to be listed after, followed by the records
which match its SSN.
 
Top