Write an SQL Query to
Delete Duplicate records from a table using ROWID.
Answer Posted / ankit kumar srivastava
DELETE FROM EMP_a WHERE ROWID NOT IN(
(SELECT MAX(ROWID) FROM EMP_a a GROUP BY
EMPNO,ENAME,sex,doj,sal,deptno,mgr HAVING COUNT(ROWID)
=1)
UNION
(SELECT MAX(ROWID) FROM EMP_a a GROUP BY
EMPNO,ENAME,sex,doj,sal,deptno,mgr HAVING COUNT(ROWID)>1))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are file in oracle.
How can a process be deployed in soa?
Do you know what are user profiles in apps. Any examples you can give?
pls send me out bound code of supplers,site,bankiformation code pls as soon as
what is global tempory table?
q)what are the validations in sql*loader
What is instead of trigger in where we will use?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
Which oracle applications pl/sql standard apis you are familiar, have you used most of them?
What are the Standard Reports and Forms in HRMS?
Explain what are the tables of auto invoice?
what is the difference between request group and request security in oracle apps?
How can we import the data into a database using sql * loader?
Pls tel me the best text book for Oracle Apps 11i Tech? & I want D2K Text book also?
What are the different components of soa suite?