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 the duplicate rows from a table in SQL Server ??

Answer Posted / sudha511

select distinct * into #temp from sampletbl
delete sampletbl
insert into sampletbl
select * from #temp
drop table #temp

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do you want to join software field as you have done your BE in Electronics?

2144


What is the maximum size of a row in sql server?

969


What is difference between group by and having?

943


What is the cartesian product of the table?

958


What does the on delete cascade option do?

1017


What are the new features are introduced in sql server 2012 reporting services?

149


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1965


in the physical file layout, where should the transaction log be stored in relation to the data file?

994


What is the bookmark lookup and rid lookup?

998


Explain stored procedure?

1053


Can you leave a union at any time?

1062


How to create a dynamic cursor with the dynamic option?

1045


Does the order of columns in update statements matter?

913


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1396


How to check table values in sql server?

955