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 many types of relations are there between dimension and measure group? : sql server analysis services, ssas
User wants only to display only pdf as export option in report manager. How to achieve this?
what changed between the previous version of sql server and the current version? : Sql server database administration
what is create database syntax? : Sql server database administration
Explain about system stored procedure?
What are cursors in ms sql server?
What are alternate keys?
What is extended stored procedures?
What are the advantages of user defined function?
Do you know what is bit data type and whats the information that can be stored inside a bit column?
How to create a view with data from multiple tables?
How do I get to sql server configuration manager?
Explain few examples of RDBMS?
What is the difference between dbcc indexdefrag and dbcc reindex?
How to filter out duplications in the returning rows in ms sql server?