Not sure if this is possible or if there is a better way of doing this.
I have a table which I want to perform a distinct statement on the field name event. This field will contain duplicate events but the date will be different
Event ! Dte ! Location
a ! 1/1/2015 ! aa
a ! 1/2/2015 ! aa
a ! 1/3/2015 ! bb
b ! 1/2/2015 ! cc
b ! 1/3/2015 ! cc
I would like to return
Event dte location
a ! 1/1/2015 ! aa
b ! 1/2/2015 ! cc
I have tried group by, but get aggregate errors when I apply the order by dte .
Is it possible to select the distinct field and then join the other fields from the same table
I dont have any code available as I am not sure on the best way forward with this. Would appreciate any help to find a solution