Delete duplicate rows from a table without primary key by
using a single query
Table Employee
empname salary
A 200
B 300
A 200
C 400
D 500
D 500
Output should be
A 200
B 300
C 400
D 500
Answer Posted / navneet sharma
select distinct * from tablename
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What information is maintained within the msdb database?
How can we use ConnectorJ JDBC Driver with MS SQL?
What is the difference between Stored Procedures and triggers?
Explain powershell included in sql server 2008?
what's the maximum size of a row? : Sql server database administration
Why we use functions in sql server?
What happens when converting big values to numeric data types?
what are the new features introduced in sql server 2000? : Sql server database administration
Explain data warehousing in sql server?
What is mean by dml?
What is a transact-sql statement?
what is a sub-report?
What is measure group, measure? : sql server analysis services, ssas
In what sequence sql statement is processed?
What is the difference between ddl and dml?