I want to produce a query to extract a row of best results for a person during a year over various distances, whilst all the results are listed in a single table. How do I formulate a query to do this?
So the table will look like this:
Date distance Name time
2020 10 Bert 00:19:38
2020 10 Bert 00:20:02
2019 10 Bert 00:19:52
2020 50 Bert 01:50:00
2020 50 Bert 01:45:34
2019 50 Bert 01:44:00
2020 100 Bert 04:00:00
2020 100 Bert 03:50:00
2019 100 Bert 04:02:00
and the results line for Bert in 2020 needs to look like this....
year Name best10 best50 best100
2020 Bert 00:19:38 01:45:34 03:50:00