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
What is the most common sql injection tool?
What is sp_helptext?
What is rownum?
Which is better varchar or nvarchar?
What are the benefits of stored procedures?
What is the starting oracle error number? What is meant by forward declaration in functions?
What is error ora-12154: tns:could not resolve the connect identifier specified?
Can we insert in sql function?
What is sql used for?
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
Explain 3 basic parts of a trigger.
What is the non-clustered index in sql?
What is a unique constraint?
What are sql constraints?
what is top in tsql? : Transact sql