the_killingbot
New member
- Local time
- Today, 17:21
- Joined
- Sep 7, 2021
- Messages
- 4
Hi all, I have found some similar posts along these lines but none with a field that was calculated in the same query. By the way, I am making a database on formula e, just so you understand what is going on here.
Here is the SQL code from the query:
I want to add the name of the driver, first_name, and have the criteria whatever the value of MaxOf_r1.
I want to output the winning driver's info if they scored the number of points that appear in the max of the race.
The code for the driver's first name is just: driver.first_name, this would go before MaxOf_r1. I have also attached the access file if that helps.
Thanks.
Here is the SQL code from the query:
SQL:
SELECT
Max(race_results.r1) AS MaxOf_r1,
Max(race_results.r2) AS MaxOf_r2,
Max(race_results.r3) AS MaxOf_r3,
Max(race_results.r4) AS MaxOf_r4,
Max(race_results.r5) AS MaxOf_r5,
Max(race_results.r6) AS MaxOf_r6,
Max(race_results.r7) AS MaxOf_r7,
Max(race_results.r8) AS MaxOf_r8,
Max(race_results.r9) AS MaxOf_r9,
Max(race_results.r10) AS MaxOf_r10,
Max(race_results.r11) AS MaxOf_r11
FROM driver INNER JOIN race_results ON driver.ID = race_results.driverID;
I want to add the name of the driver, first_name, and have the criteria whatever the value of MaxOf_r1.
I want to output the winning driver's info if they scored the number of points that appear in the max of the race.
The code for the driver's first name is just: driver.first_name, this would go before MaxOf_r1. I have also attached the access file if that helps.
Thanks.
Attachments
Last edited: