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 delete duplicate record from a particular table?

Answers were Sorted based on User's Feedback



How To delete duplicate record from a particular table?..

Answer / deepa

For Example

sno names
1 arun
2 arun
3 arun
6 arun
7 bala
11 bala
12 guna
9 guna
14 guna
10 raj
13 raj

Table Name T1
Fields Names Sno,Names

Delete From t1 where sno not in
(select min(sno) from t1 group by names)

Is This Answer Correct ?    2 Yes 5 No

How To delete duplicate record from a particular table?..

Answer / parashu

Delete from <TableName> where <fieldName> in (select
<FieldName> from <TableName> Group By <FieldName> Having
(Count(<FieldName>)>1))

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More SQL Server Interview Questions

What is use of except clause? How it differs from not in clause?

0 Answers  


Plz tell about backup&recovery?

3 Answers  


Explain the difference between primary keys and foreign keys?

0 Answers  


What is normalization and what are the advantages of it?

0 Answers  


How can you ensure that the database and sql server based application perform well?

0 Answers  


What is a scheduled job or what is a scheduled task?

0 Answers  


What is self contained sub query?

0 Answers  


how to retrive only second row from table in sql server 2000?

15 Answers   Cognizant, CTS,


There are two tables (T1, T2) with different rows. Find the output of query. Select count(*) from T1,T2.

3 Answers   Amdocs,


What is difference between rollback immediate and with no_wait during alter database?

0 Answers  


What is standby servers? Explain types of standby servers.

0 Answers  


How to bind a view to the schema of the underlying tables?

0 Answers  


Categories