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 trigger in sql and its types?

1107


What are dml commands?

1069


How does one load ebcdic data? : aql loader

1252


what is 'mysqladmin' in mysql? : Sql dba

1073


What is sql constant?

1097


How sql query is executed?

1183


What is an exception in pl/sql?

1156


What is the importance of sqlcode and sqlerrm?

1389


What is cursor explain with example?

1025


How to read/write files from pl/sql?

1079


How to add new employee details in an employee_details table with the following details

1136


What version is sql?

1071


What programs use sql?

1083


What is the difference between cluster and non-cluster index?

1152


What are all the ddl commands?

1236