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 delete duplicate records in SQL SERVER

Answer Posted / kalyan

with [TN ordered by CN] as
(
select row_number() over(partition by CN order by CN) as
rowid,* from TN
)
delete from [TN ordered by CN] where rowid > 1

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to turn on the mssql api module in php?

1017


What is the difference between a primary key and a unique key? Are they the same?

1011


What gets stored inside msdb database?

1197


Which are the third-party tools used in sql server and why would you use them?

843


Explain transaction server isolation?

982


Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1991


What is CTE in SQL

876


Can you explain what is the use of custom fields in report?

1002


What is normalization of database?

1021


Explain the Ways to improve the performance of a sql azure database?

80


Explain about remote stored procedure?

966


Define inner join in sql server joins?

991


How much memory that we are using in Logshipping Concept?

1730


How many categories of data types used by sql server?

969


Explain what is the function of sql server agent windows service?

944