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
  • 71,379
  • 9
  • 63
  • 98
Rajath
  • 2,611
  • 8
  • 27
  • 43

0 Answers0