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

select *
from a
where rowid not in (select min(rowid) from a group by no)

no is column in table a;

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WHAT IS ecc 6.0

1910


What happens if the imported table already exists?

770


How to convert characters to numbers in oracle?

800


What is the order of defining local variables and sub procedures/functions?

820


How to define a variable of a specific record type?

848


How do you find current date and time in oracle?

784


What are the types of partitions in oracle?

768


How to drop a stored procedure in oracle?

771


How do you bind variables in oracle?

744


How to run queries on external tables?

778


How to handle a single quote in oracle sql?

786


Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1477


What is the usage of save points in oracle database?

733


How to open a cursor variable?

792


What exactly do quotation marks around the table name do?

722