I have table-A(1,2,3,4,4,5,6,6,6,7).
how to get all duplicate values?what is sql query?

Answer Posted / sudipta santra

select * from A group by no having count(*)>1 ;

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of full option in exp command.

663


How do we display rows from the table without duplicates?

628


How do I start tns listener?

641


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1284


Use of an integrity constraint is better to validate data. Explain

634






How to create a table index in oracle?

743


What are the execution control statements?

708


How to best split csv strings in oracle 9i?

684


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

746


How to initialize variables with default values?

717


Explain the use of record length option in exp command.

682


How to work with data objects interactively?

634


Explain how you would restore a database using RMAN to Point in Time?

1727


What is blob data type in oracle?

640


What is a cursor in oracle?

731