What is the Query to print out the individual total number of
duplicate row in sql.

Answer Posted / ashish bakal

select count(deptno), deptno from emp where rowid not in
(select min(rowid) from emp group by deptno) group by
deptno;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort in sql?

774


What is data definition language?

803


explain mysql aggregate functions. : Sql dba

724


What are the different schemas objects that can be created using pl/sql?

726


How to display Row Number with Records in Oracle SQL Plus?

770






what are the differences among rownum, rank and dense_rank? : Sql dba

740


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

816


Why do we need sharding?

730


What is the process of debugging?

741


What is sql select statement?

703


What is lexical units in pl sql?

757


What is 19 null in sql?

703


Explian rowid, rownum? What are the psoducolumns we have?

758


How do I add a primary key to a table?

745


What does pragma mean?

712