I have a table EMP in which the values will be like this
EmpId Ename Sal DeptId
11 Ram 10000 10
11 Ram 10000 10
22 Raj 20000 20
22 Raj 20000 20
33 Anil 15000 30
33 Anil 15000 30
I want to delete only duplicate Rows. After Delete I want
the output like this
EmpId Ename Sal DeptId
11 Ram 10000 10
22 Raj 20000 20
33 Anil 15000 30
Answer Posted / samadhan
use distinct keywor in sql query
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Can sql servers link to other servers?
What are the properties and different types of sub-queries?
What is change tracking in sql server?
Give me any three differences between Truncate and Delete.
How self join is different from outer join?
What is in place upgrade in sql server?
what is a live lock? : Sql server database administration
what are the reporting service components in SSRS?
Is there any difference between the primary key and unique key?
What is implicit mode in sql server?
What is a View ? Can we insert, Update and delete a view?
What is the difference between inner join and equi join?
Describe in brief sql server monitoring ways.
What is scheduled job and how to create it?
How would you use user_constraints table in DB?