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?
 
    