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 I see all tables in sql?
Is sql free?
Are sql database names case sensitive?
How to combine two stored procedures in sql?
What is meant by user defined function?
What is the difference between a database and a relational database?
How to run sql commands in sql*plus?
what is data manipulation language? : Sql dba
What are the benefits of triggers?
Is left join and outer join same?
Cite the differences between execution of triggers and stored procedures?
Why we use joins in sql?
What is t sql used for?
Is inner join faster than left join?
How do you update a table in sql?