how to delete all duplicate records from a table using
subquery?
Answer Posted / noor
DELETE FROM T1
WHERE ROWID IN (SELECT ROWID FROM T1
WHERE ROWID NOT IN(SELECT MAX(ROWID) FROM
T1 GROUP BY C1,C2));
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
can anyody please send me the dump for Oracle 10g certifications for DBA path?
Can we protect our pl/sql source code?
Explain how are indexes update?
What is different types of joins?
What types of joins are used in writing subqueries?
How to declare a local variable?
What is the difference between PFILE and SPFILE in Oracle?
How to add a new column to an existing table in oracle?
> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?
What is a view and how is it different from a table?
How can you use check constraints for self referential integrity?
Explain the difference between sql and oracle?
How to use attributes of the implicit cursor in oracle?
What is the difference between pre-select and pre-query?
What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?