I need to run a query that will select the top field in each case. I have repeat entries of an ID with a count but I would like it to select one of those entries at random rather than selecting all of them.
e.g.
My table looks like this:-
ID: 00001 Count: 6 Place: New York
ID: 00001 Count: 6 Place: Chicago
ID: 00002 Count: 4 Place: New York
ID: 00002 Count: 4 Place: Chicago
I only want 1 entry from each ID.
Thanks
e.g.
My table looks like this:-
ID: 00001 Count: 6 Place: New York
ID: 00001 Count: 6 Place: Chicago
ID: 00002 Count: 4 Place: New York
ID: 00002 Count: 4 Place: Chicago
I only want 1 entry from each ID.
Thanks