AccessNoob67
New member
- Local time
- Today, 15:54
- Joined
- Aug 22, 2023
- Messages
- 6
Hello all,
Not an Access expert, so please bear with me. I have a table that contains student names, class names, and whether or not the student was on time, tardy or a no show for a given month.
I'm able to get a percentage of on time, tardy and no shows for the entire month without a problem using SELECT Count(*)/(SELECT COUNT(*) FROM [class])*100 AS [Tardy Percent] FROM class WHERE (((class.tardy)=1));
What I want to do is get a percentage for each of these items by professor, but I can't for the life of me figure it out. I add the table with all the professor information to the query and create a relationship between the tables. When I add the professor name to the query I get the following error: Your query does not include the specified expression "Professor" as part of an aggregate function.
Any thoughts?
TIA
Not an Access expert, so please bear with me. I have a table that contains student names, class names, and whether or not the student was on time, tardy or a no show for a given month.
I'm able to get a percentage of on time, tardy and no shows for the entire month without a problem using SELECT Count(*)/(SELECT COUNT(*) FROM [class])*100 AS [Tardy Percent] FROM class WHERE (((class.tardy)=1));
What I want to do is get a percentage for each of these items by professor, but I can't for the life of me figure it out. I add the table with all the professor information to the query and create a relationship between the tables. When I add the professor name to the query I get the following error: Your query does not include the specified expression "Professor" as part of an aggregate function.
Any thoughts?
TIA