Hello michael123
I am afraid, there is no direct way to get rid of duplicate rows.
But you can populate a new table with distinct rows from your given table only, for example:
-- create your table
create table dudel(name varchar(50)not null, sex char(1), age integer);
-- inserte some rows into dudel
insert into dudel (name, sex, age) values ('Randy', 'M', 66);
-- . . .
commit;
-- Show all rows of dudel
select name, sex, age from dudel;
/*
name,sex,age
----------------
'mike','M',60
'mike','M',60
'mike','M',60
'Randy','M',66
'Randy','M',66
'Randy','M',66
'Randy','M',66
*/
-- show only distinct rows
select name, sex, age from dudel group by name, sex, age;
/*
name,sex,age
------------
'mike','M',60
'Randy','M',66
*/
-- create a new table dudel2 (clone of dudel)
create table dudel2(name varchar(50)not null, sex char(1), age integer);
-- populate dudel2 from dudel leaving out all duplicates
insert into dudel2 select name, sex, age from dudel group by name, sex, age;
-- show the result
select name, sex, age from dudel2;
/*
name,sex,age
'mike','M',60
'Randy','M',66
*/ Now you should be able to replace old table by new one containing distinct rows only.
You have to consider foreign keys carefully!
To supply you with more specific solution I need further details on the table in question, especially primary and foreign keys, constraints etc.
krs,
tesu