cash1981
08-01-2007, 03:24 PM
Hello all.
I have a little advanced task at hand. I want to search in a table, and find duplicates and count each duplicate found.
Imagine this table
Table | Column Name
Userinfo
Firstname | Lastname
In this table there are many with the same firstname and lastname.
I would like an sql statement which find these duplicates and for each duplicate also writes how many occurences it found
So the output I would like is something like this:
John Smith 5
Eva Something 8
and so on.
Does anybody have any tips?
I have a little advanced task at hand. I want to search in a table, and find duplicates and count each duplicate found.
Imagine this table
Table | Column Name
Userinfo
Firstname | Lastname
In this table there are many with the same firstname and lastname.
I would like an sql statement which find these duplicates and for each duplicate also writes how many occurences it found
So the output I would like is something like this:
John Smith 5
Eva Something 8
and so on.
Does anybody have any tips?