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 column data types are determined in a view?
What is subquery? Explain the properties of a subquery?
How to create a new table in a given schema?
Define magic tables in sql server?
What is sql server database?
What does select 1 mean?
What is the recommended total size of your memory optimized tables?
what are the types of indexes? : Sql server database administration
What are subquery and its properties?
can you instantiate a com object by using t-sql? : Sql server database administration
How do I open a .db file?
What is temporary table in sql server? Why we use temp table?
What is a primary index?
What is the new security features added in sql server 2016? : sql server security
How will you find out if there are expensive SQL statements running or not?