Hello, all
I have a table that has 3 columns.
name
path
hash
Now I know that there are duplicate records. I want to return all the records and I want to group them by the column that will show the duplicates which is the hash field. I want all the records returned and I want the duplicate records grouped together then the non duplicate records. So the return would look something like this.
file1 c: 1009
file4 d: 1009
file2 c: 2553
file7 c: 2553
file3 c: 4545
file5 c: 6575
file6 e: 8989
Any help with the select statement would be appreciated.
Thanks,
Ty
I have a table that has 3 columns.
name
path
hash
Now I know that there are duplicate records. I want to return all the records and I want to group them by the column that will show the duplicates which is the hash field. I want all the records returned and I want the duplicate records grouped together then the non duplicate records. So the return would look something like this.
file1 c: 1009
file4 d: 1009
file2 c: 2553
file7 c: 2553
file3 c: 4545
file5 c: 6575
file6 e: 8989
Any help with the select statement would be appreciated.
Thanks,
Ty