Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to remove duplicate rows from a table?.

Answer Posted / vamsi

for example our emp table have duplicate rows than we can
run this query to delete those duplicate rows

Delete from emp a
where rowid <> ( select max(rowid) from emp where empno =
a.empno);

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between a local and a global temporary table? : Sql dba

1060


Which join is like an inner join?

1021


what is the syntax for using sql_variant_property? : Transact sql

1033


Is sql procedural language?

960


How do I run a pl sql program?

1121


What is auto increment feature in sql?

1116


What is the current version of sql?

1017


What is nested table in pl sql?

1055


What does desc stand for?

1063


How do you remove duplicate records from a table?

936


What are properties of the transaction?

996


Which one is better subquery or joins?

1052


What are the events on which a database trigger can be based?

1178


how would you enter characters as hex numbers? : Sql dba

973


how to calculate expressions with sql statements? : Sql dba

1027