Write an SQL Query to
Delete Duplicate records from a table using ROWID.
Answer Posted / parthasarathi
delete T1
from MyTable T1, MyTable T2
where T1.dupField = T2.dupField
and T1.uniqueField > T2.uniqueField ;
Try this will work for SQL Server and My Sql but not for
MSAccess .....
For MSAccess try the below one
delete from MyTable
where uniqueField not in
(select min(uniqueField) from MyTable T2
where T2.dupField=MyTable.dupField);
The above query also works for SqlServer but not for MySql..
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
tell me the scenarios of the independent in reports
In support project one ticket alloted which steps follows manualy tell me ?
Tell me where we find the status of order information?
What do you understand by soa?
what is the difference between request group and request security in oracle apps?
Can you define an erp system?
How can a process be deployed in soa?
What are the different components of soa suite?
Do you know what is applysys in oracle application database schema, what is apps?
What are file in oracle.
WHAT IS CUSTOM VIEW AND CUSTOM COMPONENT?
please any one provide the oracle erp technical interview questions on modules(PO,AP,AR,INV,GL,OM)wise to my mail id..narendra_609@yahoo.co.in
please send me forms, xml pulisher questions,answers
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
how can i print random rows in plsql table