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
who introduced sql?
Is primary key is clustered index?
How can I see all tables in sql?
What is full join?
Explain select statements in sql?
How do I remove sql developer from windows 10?
Mention what is the function that is used to transfer a pl/sql table log to a database table?
Where not exists in sql?
What is posting?
When can we use the where clause and the having clause?
how many tables will create when we create table, what are they? : Sql dba
What is identity column in sql server?
How do you create a db file?
Can you rollback after commit?
what is a primary key? : Sql dba