There is a big table with "n" of rows and 40 + columns .It
doesn't have primary key.How do you select the primary key.
In other words how do you get the duplicate records.
Answer Posted / harikanth
Suppose Table name is Dup_Del with id as a column(consists
10,20,30,10,10,30,20)then
select * from Dup_Del
where rowid not in(select * from
(select min(rowid) from Dup_Del
group by id
);
the above query will give you the duplicate records. if you
want unique records then
select * from Dup_Del
where rowid in(select * from
(select min(rowid) from Dup_Del
group by id
);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is open database communication (odbc) in oracle?
What is Trigger in Oracle?
How to use regular expression in pattern match conditions in oracle?
Is there a function to split a string in plsql?
What is archive log in Oracle?
How to retrieve data from an explicit cursor?
What is coalesce function?
Which dictionary tables and/or views would you look at to diagnose a locking issue?
How to get execution path reports on query statements?
how to do daily transactions with out sql* loader control file regesterd in apps?
How to connect asp pages to oracle servers?
What do you mean by merge in oracle and how can you merge two tables?
What is a oracle database?
How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?
How do I escape a reserved word in oracle?