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
Difference between report and query parameter. Why do we need different type of parameter?
What does COMMIT command do?
Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?
What are cursors and when they are useful?
What is an index in sql?
What program is used to store the data source file?
What are the various editions of sql server 2017 that are available in the market?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
Where is localdb stored?
What is single-user mode?
What is explicit cursors?
Explain time data type in sal server 2008?
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
What are the options which must be set to allow the usage of optimistic models?
What is a fan-out query in SQL Azure?