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

Answers were Sorted based on User's Feedback



How to remove duplicate rows from a table?...

Answer / 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

How to remove duplicate rows from a table?...

Answer / lova raju allumalla

delete from emp where rowid not in (select min(rowid) from
emp group by empno);

Is This Answer Correct ?    7 Yes 2 No

How to remove duplicate rows from a table?...

Answer / karthik

with [dup_cte] as {
select row_number(partition by eid order by eid) as rn from emp}
go
delete from [dup_cte] where rn>1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What are the constraints available in sql?

0 Answers  


How will you select unique values from a list of records?

7 Answers   Cap Gemini,


How many triggers can be implemented for a table?

3 Answers   HSBC,


What is compound trigger?

0 Answers  


What is a primary key called that is made up of more than one field?

0 Answers  


how to decrement dates by 1 in mysql? : Sql dba

0 Answers  


How does a covering index work?

0 Answers  


What is a constraint? Tell me about its various levels.

0 Answers  


What is the purpose of the sql select top clause?

0 Answers  


is mysql query is case sensitive? : Sql dba

0 Answers  


What are the advantages of VIEW?

5 Answers  


what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure

0 Answers  


Categories