adspace


How do I count duplicates in sql?

Answer Posted / Tulsi Ram Yadav

To count duplicates in SQL, you can use the COUNT(*) function with a GROUP BY statement. Example: SELECT column_name, COUNT(*) FROM table_name GROUP BY column_name 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

how many tables will create when we create table, what are they? : Sql dba

1144


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

1238


Do we need to rebuild index after truncate?

1138


What is the best sql course?

1050


what are aggregate and scalar functions? : Sql dba

1129


Does group by remove duplicates?

1112


what is schema? : Sql dba

1147


How do I remove duplicates in two columns?

1187


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2091


What is the current version of sql?

1094


Can delete statement be rollbacked?

1054


Is primary key always clustered index?

1095


Is inner join faster than left join?

1276


Can we use distinct and group by together?

1133


how to start mysql server? : Sql dba

1267