techie SQL dupe problem
August 12, 2005 8:57 AM
Subscribe
Any SQL gurus out there? I'm stuck...
Hello.
i'm trying to do a pretty simple SQL dupe-finding operation. I'm stumped though (MS SQL Server 7 btw)
Say you've got a simple table:
messageid | message | user
and the messageid column is a unique identifier datatype, one of those GUID things (eg. {3803F70B-4C3E-4C69-8C7F-EC534BBC1A8D}), not just an auto-increment.
How can I find dupes when user and message are the same? It's easy when there's an integer-autoincrement to MAX(), but I can't work it out for a GUID...
Any help would be very much appreciated!
posted by derbs to computers & internet (13 comments total)
FROM table
GROUP BY message, user;
posted by milkrate at 9:04 AM on August 12, 2005