how to retrieve only duplicate values in a table

Answer Posted / akki julak

FOR EXAMPLE WE HAD TAKE EMP TABLE AND ENAME,EMPNO AS COLUMNS

SELECT EMPNO,ENAME
FROM EMP
WHERE ROWID NOT IN(SELECT MAX(ROWID) FROM EMP
GROUP BY EMPNO,ENAME);


by
AKKI JULAKANTI

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we accept inputs from user during runtime?

548


What is sql performance tuning?

497


What is native sql query?

554


What are the advantages of sql? Explain

652


Is coalesce faster than isnull?

512






How many indexes can be created on a table in sql?

498


Does truncate require commit?

547


What does count (*) do in sql?

528


what is a constraint? : Sql dba

715


How do I quit sql?

503


how can we know the number of days between two given dates using mysql? : Sql dba

550


Is drop table faster than truncate?

555


Explain what is sql*plus?

670


What is multiple columns?

576


Explain the order of sql statement execution?

615