what eliminate duplicate without using roenum and not
Answer Posted / madhav
DELETE FROM emp1 A WHERE ROWID > (SELECT min(rowid)
FROM emp1 B
WHERE A.empno = B.empno);
---conn scott/tiger@orcl
create table emp1 as select*from emp;
14 rows inserted
SQL> select*from emp1;
14 rows selected
-----------
insert into emp1
selectempno,ename,job,mgr,hiredate,sal,comm,deptno from emp;
14 row inserted
select*from emp1;
28 rows slected --(14 duplicates row are there)
you can use starting query duplicates rows deleted
Email:thota.madhav@gmail.com
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
how can we repair a mysql table? : Sql dba
How many triggers can be applied to a table?
What do you mean by query optimization?
How to create an array in pl/sql?
what is bcp? When is it used?
Can you selectively load only those records that you need? : aql loader
what are null values? : Sql dba
What is optimistic concurrency control? : Transact sql
Differentiate between syntax and runtime errors.
What is pl sql in oracle?
What is the difference between union and union all command?
What is the difference between a subquery and a join?
Is sql sequential or random?
What is foreign key and example?
Explain constraints in sql?