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

What is the difference between NOROW and LOCKROW?

2825


where the connection string store in the database

2060


Explain the architecture of ms sql reporting service?

912


Explain error handling in ssis?

1010


What is triggers in ms sql server?

1103


Explain important index characteristics?

1023


What are wait types?

1097


What is “asynchronous” communication in sql server service broker?

1022


Give the query of getting last two records from the table in SQL SERVER?

941


Do you know what is a trace frag? Where do we use it?

984


What is sql server 2000 work load governor?

1051


Mention the 3 ways to get a count of the number of records in a table.

973


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

2354


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

1012


Where cross join is used?

950