I want to select all the columns but the column name given in DISTINCT is repeated twice.
For Intance,
SELECT DISTICT emp_name,* FROM EMPLOYEE
In above case, column emp_name is getting selected twice.
How can I avoid it?
UPDATE:
How to apply DISTINCT on selected column while returning multiple columns?
FOR instance:
SELECT DISTINCT(emp_name), emp_address, doj FROM EMPLOYEE
In above example DISTINCT must be applied on emp_name.