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 union?

1085


What is the use of & in pl sql?

988


Which normal form is best?

895


Can we use ddl commands in pl sql?

1074


Why indexing is needed?

940


Which sorts rows in sql?

970


What are packages in pl sql and also explain its advantages?

961


Why stored procedure is faster than query?

951


What is mdf ldf and ndf?

932


what is a materialized view? : Sql dba

999


What is sql integrity?

1064


Why do we need view in sql?

934


How do I make my sql query run faster?

893


How do I create a sql database?

950


What are the three forms of normalization?

996