Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql find duplicate rows multiple columns

-- multiple columns
SELECT COUNT(*) c , 
CONCAT(students.first_name, "----",students.last_name) 
FROM students WHERE students.class_id = classes.id
GROUP BY CONCAT(first_name,"----",last_name) HAVING c > 1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #find #duplicate #rows #multiple #columns
ADD COMMENT
Topic
Name
9+1 =