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 / jansi rani
SELECT EMPNAME,SAL FROM EMP GROUP BY EMPNAME,SAL
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How to download and install sql server 2005 books online?
What is a partition key?
How to delete a database in ms sql server?
Explain how dts is used to extract, transform and consolidate data?
How you can get a list of all the table constraints in a database?
Explain the third normal form(3nf)?
what is isolation level at dead lock?
How to create a large table with random data for index testing in ms sql server?
Can we create clustered index on composite key?
Which table keeps information about stored procedures?
What is difference between joins and subqueries?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
Write a SQL query to make a column as unique?
How to create an index on a view?
How do you migrate data from mssql server to azure?