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
Explain scalar functions in sql?
Is there a way to automate sql execution from the command-line, batch job or shell script?
Can we group by two columns in sql?
What is embedded sql with example?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
Is left join faster than inner join?
Can we use ddl statements in stored procedure sql server?
what is schema? : Sql dba
What is a temporal data type?
What is the purpose of primary key?
What are the ways on commenting in a pl/sql code?
What is the maximum size of sqlite database?
Why do we use procedures in pl sql?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
What are pl/sql cursor exceptions?