Is it possible to delete duplicate rows in a table without
using a temporary table ?
Answer Posted / krishnaraj p n
Can be done in a simple way.
DELETE FROM <TABLE NAME > WHERE <COLUMN NAME >IN
(
SELECT <COLUMN NAME> FROM <TABLE NAME >
GROUP BY <COLUMN NAME>
HAVING COUNT(<COLUMN NAME>) > 1
)
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain the difference between clustered and non-clustered index?
If you want to send some data from access database to sql server database. What are different component of ssis will you use?
What are the kinds of subquery?
Can we use max in where clause?
Can you type more than one query in the query editor screen at the same time?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
what is blocking? : Sql server database administration
List out the differences between the clustered index and non-clustered index in sql server?
New concepts of sql server 2005 use in your project.
Explain how to send email from sql database?
how many bits ip address consist of? : Sql server database administration
you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration
Write a sql query to display the current date?
How to find the list of fixed hard drive and free space on server?
Can we add a cpu to sql server?