Am working on a database to total judge's scores for each car participating in a car show. (The database also does other things, but my only problem right now is this one.) From a query (or queries), we would like to create custom award certificates for first, second, and third place winners from each class right there on the spot. I'm just learnign the SQL parts of Access and this is what I have so far:
SELECT Cars.Class, [Score Cards].[Car#], Sum([Score Cards].Total) AS [Total Points], Cars.Class, Cars.Year, Cars.[Car Manufacturers], Cars.Model, Cars.Style, [Mailing List].[First Name #1], [Mailing List].[Last Name #1], [Mailing List].[First Name #2], [Mailing List].[Last Name #2]
FROM ([Mailing List] INNER JOIN Cars ON [Mailing List].[ID#] = Cars.[Owner ID#]) INNER JOIN [Score Cards] ON Cars.[Car#] = [Score Cards].[Car#]
GROUP BY Cars.Class, [Score Cards].[Car#], Cars.Class, Cars.Year, Cars.[Car Manufacturers], Cars.Model, Cars.Style, [Mailing List].[First Name #1], [Mailing List].[Last Name #1], [Mailing List].[First Name #2], [Mailing List].[Last Name #2]
ORDER BY Cars.Class, Sum([Score Cards].Total) DESC;
Any help would be GREATLY appreciated. THANKS!!
SELECT Cars.Class, [Score Cards].[Car#], Sum([Score Cards].Total) AS [Total Points], Cars.Class, Cars.Year, Cars.[Car Manufacturers], Cars.Model, Cars.Style, [Mailing List].[First Name #1], [Mailing List].[Last Name #1], [Mailing List].[First Name #2], [Mailing List].[Last Name #2]
FROM ([Mailing List] INNER JOIN Cars ON [Mailing List].[ID#] = Cars.[Owner ID#]) INNER JOIN [Score Cards] ON Cars.[Car#] = [Score Cards].[Car#]
GROUP BY Cars.Class, [Score Cards].[Car#], Cars.Class, Cars.Year, Cars.[Car Manufacturers], Cars.Model, Cars.Style, [Mailing List].[First Name #1], [Mailing List].[Last Name #1], [Mailing List].[First Name #2], [Mailing List].[Last Name #2]
ORDER BY Cars.Class, Sum([Score Cards].Total) DESC;
Any help would be GREATLY appreciated. THANKS!!