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


write a query to remove duplicate records without using primary key column?

Answers were Sorted based on User's Feedback



write a query to remove duplicate records without using primary key column?..

Answer / 312

351

Is This Answer Correct ?    3 Yes 3 No

write a query to remove duplicate records without using primary key column?..

Answer / mathanrathinam


delete tmp from(select col1,col2,row_number over(partition by col1,col2 order by col1,col2) rownum from tablename) tmp
where rownum >1

Is This Answer Correct ?    7 Yes 8 No

Post New Answer

More SQL Server Interview Questions

How many jobs will create for Mirroring, Log Shipping, and Transactional Replication?

4 Answers   IBM,


What are different replication agents and what's their purpose? : sql server replication

0 Answers  


Do comments need to go in a special place in sql server 2005?

0 Answers  


What is transactional replication?

0 Answers  


How to list all login names on the ms sql server?

0 Answers  


How to use “drop” keyword in sql server and give an example?

0 Answers  


Plz tell about backup&recovery?

3 Answers  


What is the maximum number of instances in 32 bit and 64 bit sql server 2012?

0 Answers  


Different Types of Functions ?

2 Answers   Satyam,


What are dml triggers and types of dml triggers?

0 Answers  


How to concatenate two character strings together?

0 Answers  


Can we call future method from trigger?

0 Answers  


Categories