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

What are the various oracle database objects?

674


Is oracle an open source?

632


What happens if the update subquery returns multiple rows?

606


What is a tns file?

500


Explain about functional dependency and its relation with table design?

550






How to set up autotrace for a user account?

592


Differentiate between translate and replace?

625


Explain the use of log option in exp command.

533


What is the best way to do multi-row insert in oracle?

559


How to use fetch statement in a loop?

549


How to assign a tablespace to a users in oracle?

587


What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?

520


How to drop an existing table in oracle?

589


How to end the current transaction in oracle?

550


What is a database schema in oracle?

619