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
What is difference between materialized view and view?
my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions
Explain nested trigger in sql?
What is join and name different type of joins?
What is sharding?
New concepts of sql server 2005 use in your project.
What is clustered primary key?
How do I get Report Builder to generate a parameter that can be set by users viewing the report?
What is meant by Active-Passive and Active-Active clustering setup?
What are the types of subscriptions in SQL Server replication?
Do you know what are the reporting services components?
What is the filtered index?
What happens when converting big values to numeric data types?
What is a full text index?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?