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 primary key and unique key?

1121


how to use regular expression in pattern match conditions? : Sql dba

1031


How many subqueries can be nested in a statement?

984


what is the syntax used for partition in tsql? : Transact sql

1014


What are schema-level triggers?

1102


What is a heap in sql?

1070


What is difference between db2 and sql?

1000


what is the difference between blob and text? : Sql dba

1020


explain the advantages and disadvantages of stored procedure? : Sql dba

1009


What is the difference between rollback and rollback to statements?

1060


What is a unique key and primary key and foreign key?

969


Explain commit, rollback and savepoint.

1001


When do we use triggers?

1079


what is the difference between char_length and length? : Sql dba

1044


What is procedure explain with example?

961