Hi,
Do anyone know a query for the following senario,
I have a table in which i have multiple rows with the same entry. I want to keep only one copy of such rows. How to write a query to delete all the duplicate rows and have only one entry for such with a single query???
For example
[code=oracle]
create table Employee
{
empno char(5),
name varchar2(20),
salary number(5,2)
};
[/code]
the content of the table is
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
how to delete the duplicate entries in the above table ????
Do anyone know a query for the following senario,
I have a table in which i have multiple rows with the same entry. I want to keep only one copy of such rows. How to write a query to delete all the duplicate rows and have only one entry for such with a single query???
For example
[code=oracle]
create table Employee
{
empno char(5),
name varchar2(20),
salary number(5,2)
};
[/code]
the content of the table is
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
emp01 ranjit 10000.50
how to delete the duplicate entries in the above table ????
Comment