Delete distinct name from table

How could i delete the distinct name from the table. the rest record would be available as it is in the table?

Showing Answers 1 - 9 of 9 Answers

sundeep

  • Nov 21st, 2006
 

 u mean to remove the repeated records?

for that the query is

select distint<colname> from <tablename>

  Was this answer useful?  Yes

preethi

  • Jan 9th, 2007
 

To remove distinct rows from a table use this

delete from table_name where column_name in (select distinct(column_name) from table_name);

If u want unique values

select distinct (column_name) from table_name ;

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions