Write an SQL Query to
Delete Duplicate records from a table using ROWID.

Answer Posted / amit shrivastava

Delete from table where rowid not in (select max(rowid)from
table group by column_name);

Delete from table T1 where rowid < (select min(rowid) from
table T2 where T1.emp_name=T2.emp_name);

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can u give the Documentation of Custom.pll in oracle apps

2977


Tell me how to debug the report?

623


Can you define an erp system?

663


Explain what are the tables of auto invoice?

631


In oracle application how do you debug or trace errors?

618






In hierarchical structure of a database? we have write query from where we should start?

1690


testing tools?

1735


What are the different components you should consider while defining a responsibility in oracle apps?

627


Are you familiar with internet architecture of oracle apps 11i?

615


What do you understand by a set of books?

634


Pls tel me the best text book for Oracle Apps 11i Tech? & I want D2K Text book also?

1675


how do you describe O2C along with tables

2299


Suppose for report I have to parameters those are from_date and to_date, so to_date should be greater when compare to from_date, if we are giving to_date is lessthen it must shows some error how we will make?

616


How to move the one file from one instance to another instance? And your scripts also?

600


How many schemas we have? how many you have used?

1598