adspace


How do I find duplicates in two columns?

Answer Posted / Manish Kumar Dwivedi

You can use a subquery to find duplicates in multiple columns. For example: SELECT column1, column2 FROM table WHERE (column1, column2) IN (SELECT column1, column2 FROM table GROUP BY column1, column2 HAVING COUNT(*) > 1).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are aggregate and scalar functions? : Sql dba

1142


what are all the common sql function? : Sql dba

1142


what is collation? : Sql dba

1242


Does group by remove duplicates?

1121


What is the current version of sql?

1106


Can delete statement be rollbacked?

1065


Is inner join faster than left join?

1288


What is the best sql course?

1064


Is primary key clustered index?

1028


If a cursor is open, how can we find in a pl/sql block?

1252


What is the current version of postgresql?

1188


how to use regular expression in pattern match conditions? : Sql dba

1125


Do we need to rebuild index after truncate?

1155


Can we rollback truncate?

1083


define sql insert statement ? : Sql dba

1110