how will I find the duplicate rows count from employees
tablein oracle.

Answer Posted / avik ganguly

select * from emp a where rowid = (select max(rowid) from
emp where empno = a.empno group by empno having count(*) >1)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main phases of database development?

622


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2114


What is a database development?

606


Why does this query return 0?

692


Who are end users in dbms?

624






You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?

707


State the acid rules?

796


Explain the role of indexing in databases?

736


How is data stored in dbms?

605


fact table and dimension table containg one to many relationship or many to one relastionship

2149


How can I detect whether a given connection is blocked?

684


How to replace not in with not exist?

1548


What is dbms and its application?

639


What is database design and development?

694


What is DB Development software?

1712