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

what is denormalization? : Sql server database administration

0 Answers  


How global temporary tables are represented and its scope?

0 Answers  


What are out-of-range errors with date and time literals?

0 Answers  


Why do we use trigger?

0 Answers  


What is a rollup clause?

0 Answers  


Mention the different types of replication in sql server.

0 Answers  


What are orphan records?

0 Answers  


What are acid properties of transaction?

0 Answers  


How to install sql server 2005 express edition?

0 Answers  


Is sql server implemented as a service or an application? : Sql server database administration

0 Answers  


How will you collect the date from current date to last older 6 days date in sql server 2005

4 Answers  


What is table value parameters (tvp)?

0 Answers  


Categories