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 / sam

SELECT num,
COUNT(num) AS NumOccurrences
FROM A
GROUP BY num
HAVING ( COUNT(num) > 1 )

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will you be able to store pictures in the database?explain.

728


What is a proxy object?

766


What is a package in oracle?

757


How to add a new column to an existing table in oracle?

829


What happens if you use a wrong connect identifier?

699


When do you get a .pll extension in oracle? Explain its importance

761


What is raw datatype in oracle?

778


How to export your own schema?

747


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1708


How do I limit the number of oracle database connections generated by weblogic server?

791


What are the types of trigger in oracle?

744


What are the execution control statements?

809


What are advantages of dateset in datastage?

1971


what is reindexing?

1338


What is recovery manager in Oracle?

803