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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

1206


What is the security principal at the server level that represents your session?

964


Differentiate between a having clause and a where clause.

925


What is the name of the Database which IBM mainframe uses?

947


Can you edit the .rdl code associated with a linked report?

149


List some advantages and disadvantages of stored procedure?

966


What is bcp? When does it used?

920


You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?

987


What is the exact numeric data type in sql?

960


how you can list all the tables in a database?

967


How many replicas are maintained for each sql azure db?

122


Explain nested stored procedure. Syntax and an example for create nested stored procedure?

883


What are the rendering extensions of ssrs?

142


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2530


What is the difference between a function and a stored procedure?

1005