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...

how to delete duplicate rows in sql server2005

Answer Posted / surendra pal singh

delete from tablename where empname in (select empname from table name group by empname having empid>1)

where empname and empid are the columns of the table.
definately it will work

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization according to you and explain its different levels?

942


What is a View ? Can we insert, Update and delete a view?

987


What language is sql server written in?

1020


What are date and time data types in ms sql server?

1080


Why I am getting this error when dropping a database in ms sql server?

1068


What do you understand by replication in sql server?

1055


What are the system database in sql server 2008?

1025


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

908


Mention what are the core components of ssrs?

323


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1178


Explain steps of normalization?

989


Write the queries for commands like Create Table, Delete table, Drop Table etc.

1084


If the job running very slow what is the action you do

1884


How to create user messages with print statements in ms sql server?

979


What is filestream?

990