I want to know if there is a way to remove duplicate values from a table. The key 'distinct' will fetch us the unique rows however if one value differs in a column, it wont. so just wanted to know if this can be achieved by any means. Hope the below example will help.
For example : In the below table there are two entries for Emp_ID 1234 with two different priorities. my output should consider the higher priority row alone. Is it possible?
My table +---------+------+--------+-------+ | Employee_ID| priority | gender | +------------+-----------+--------+ | 1234 | 1 | F | | 1234 | 10 | F | | 5678 | 2 | M | | 5678 | 25 | M | | 9101 | 45 | F | +------------+-----------+--------+ Output
+---------+------+--------+-------+ | Employee_ID| priority | gender | +------------+-----------+--------+ | 1234 | 1 | F | | 5678 | 2 | M | | 9101 | 45 | F | +------------+-----------+--------+