I have a table structure in my mysql database that looks like this:
id | fname | lname | event | time | date
The table above is used for track meet results. All the results are put into the table for every meet every year.
Now what I did is get the "Top Ten List" for a specific event.
`SELECT * FROM Times WHERE event='1600m' ORDER BY time LIMIT 10
Everything works fine and dandy until I showed the results to my coach and he said "well... How is Joe Schmoe on there three times?"
So what I need to do is use DISTINCT
(i'm guessing) so each name can only appear on the list once.
I can't seem to figure out how to do this with the two different columns. Any help?