FinOzRacing
Programmer
Hi all,
I have and F1 results table called laptimes.
i have entered following details from each day
driver,laptime,day,track
where day means the day 1, 2,3,...test day,
track is the track where the testing was done.
Now for example if Kimi Raikkonen drives 3 days test at Valencia (called as track 1) and his best laptimes are
day 1: 70.123 (as seconds in db), day 2: 70.224 but on day 3 he makes laptime of 69.754 seconds
the following
SELECT * FROM laptimes WHERE track=1 GROUP BY driver ORDER BY laptime
When i print out the result from this query it shows to Kimis laptime as 70.123 not the fastest (69.754) without the GROUP BY it get all 3 laptimes in right order, but how i can get only the fastest laptime from every driver?
Idea is i could print out each days results and also combined list with the fastest laptimes from every driver done in different testing days.
I have and F1 results table called laptimes.
i have entered following details from each day
driver,laptime,day,track
where day means the day 1, 2,3,...test day,
track is the track where the testing was done.
Now for example if Kimi Raikkonen drives 3 days test at Valencia (called as track 1) and his best laptimes are
day 1: 70.123 (as seconds in db), day 2: 70.224 but on day 3 he makes laptime of 69.754 seconds
the following
SELECT * FROM laptimes WHERE track=1 GROUP BY driver ORDER BY laptime
When i print out the result from this query it shows to Kimis laptime as 70.123 not the fastest (69.754) without the GROUP BY it get all 3 laptimes in right order, but how i can get only the fastest laptime from every driver?
Idea is i could print out each days results and also combined list with the fastest laptimes from every driver done in different testing days.