Write an SQL Query to
Delete Duplicate records from a table using ROWID.
Answer Posted / swati
DELETE FROM <table_name> T1
WHERE T1.ROWID > (SELECT MIN(T2.ROWID)
FROM <table_name> T2
WHERE T2.<common column name> = T1.<common
column name>)
----------------------------
DELETE FROM <table_name> T1
WHERE T1.ROWID < (SELECT MAX(T2.ROWID)
FROM <table_name> T2
WHERE T2.<common column name> = T1.<common
column name>)
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
What do you understand by soa and what are the benefits of using this architecture?
A program must be written which accepts date parameter. The date parameter will accept data in the format DD/MM/YYYY. This data has to be validated and post validation, the following details have to be displayed for this date parameter 1. Input date must be defaulted to sysdate, It can be overridden by any other date. 2. Financial year should be displayed for this date parameter. Eg: If the input date is 30/11/2010, the financial year must be displayed as 1. From Date : 01-Aprr-2010 To Date: 31-Mar-2011 3. Calendar year and Calendar month must also be displayed. 4. The next payment cycle (say for EB), must be displayed based on this date parameter. 5. The previous payment must also be displayed based on this date.
Tell me how to debug the report?
Can you explain the difference between architecture followed in 10g & 11g?
How many schemas we have? how many you have used?
In oracle application how do you debug or trace errors?
how do you describe O2C along with tables
what are the balancing segments in AR?
What are the different components of soa suite?
Do you know what are user profiles in apps. Any examples you can give?
What is instead of trigger in where we will use?
In support project one ticket alloted which steps follows manualy tell me ?
What is a value set? List its various types.
q)what are the validations in sql*loader
What do you understand by soa?