I have a table which have three fields ID,Name,aDate. I want result on distinct name and i want date to be in result. I am using query as
Select distinct(Name),adate from table_name.
But i am getting wrong results.i think sql is appling distinct on combination of both fields. What i do help me. I want distinct name values with their respective adate field.