0

Consider their id is also same. Then how to preserve only one record, and delete rest duplicate of all records?

+-------+--------+--------+-------+
| empid | name   | salary | dept  |
+-------+--------+--------+-------+
|   100 | danial |  12000 | civil |
|   101 | giri   |   7000 | comp  |
|   100 | danial |  12000 | civil |
|   101 | giri   |   7000 | comp  |
+-------+--------+--------+-------+

Here I want to delete one danial or giri and another one should not be deleted how to do this?

Giorgos Betsos
  • 69,699
  • 7
  • 57
  • 89
Rajath
  • 1,916
  • 6
  • 22
  • 40

0 Answers0