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 / mahesh babu ummaneni

inthis we have some steps
-->first rimove duplicate values from table
select distinct * from ta1
-->copy the data into anothetable
select distnice * into tb2 from tb1
-->remove the first table
drop table tb1
-->copy the tb2 data into tb1
select distinct * into tb2 from tb1

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which tcl commands are available on the sql server?

1072


What is similarity and difference between truncate and delete in sql?

1086


What are built in functions?

994


What is the maximum rows in sql server table?

905


Tell me what do we need queues in sql service broker?

981


Does dbcc checkdb requires db to be in single_user mode? : sql server database administration

966


What does nvl stand for?

938


What is use of except clause?

1087


Write a program using SQL queries to find a unique entry in a table.

982


What is query and its types?

906


What is the usage of sign function?

1093


What is mean by dml?

998


How to create an index on an existing table in ms sql server?

973


How do I start sql server agent automatically?

958


What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

986