i have a table with id, first, last and i want to run a query that says
give me every record where the combination of first and last exists more than once
(i am trying to find duplicate records)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT
Concatenation will give out false answers as pointed out in the comments (‘Roberto Neil’ vs ‘Robert ONeil’.
Here is an answer that eliminates the concatenation issue. I found out the non duplicates and eliminated them from the final answer.
OLD SOLUTION
Use GROUP BY and HAVING.. check out this working sample
This will result in the following