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
Explain linked server in sql?
What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?
How to call a function from a stored procedure in SQL Server ?
What is partition index in sql server?
What is difference between cte and view?
explain extended properties
Can you move the resources after pausing the node? : sql server database administration
What is difference between equi join and natural join?
What is oltp (online transaction processing)?
what is datawarehouse?
what is the main function of a query parameter?
What is extended stored procedures?
Do you know hot add cpu in sql server 2008?
What is the default Port No on which SQL Server listens?
What is lookup override?