Delete duplicate records in the emp table.
Answer Posted / 14-07-2007
delete from emp where rowid not in(select min(rowid) from
emp group by empno;
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What are the basic techniques of indexing?
what are aggregate and scalar functions? : Sql dba
What is percent sign in sql?
Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?
When is the explicit cursor used ?
Is left join faster than join?
Can a view be mutating? If yes, then how?
What is normalization sql?
What is the location of pre_defined_functions.
What is rownum in sql?
How do you truncate?
How many sql commands are there?
What are sql indexes?
What port does sql server use?
what is csv? : Sql dba