diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-01-04 19:04:03 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-01-04 19:04:03 +0530 |
commit | 289d5a1a6d6997722f35b7f7303c7b3ce9afffa4 (patch) | |
tree | 5be8e1c7374d32b13257e6d58e48e20943fea58f | |
parent | 74e62a80677d5158b0573d37e27e59030a5fa7d8 (diff) |
show average grades for class
-rw-r--r-- | index.html | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -233,7 +233,7 @@ grade = ">= 0"; } - let query = `SELECT DISTINCT Subject || ' ' || Course AS "Class Code", CourseTitle as "Title", AVG(AVG_GRD) AS "Average Grade" FROM raw_data WHERE (CrsPBADiv = '${division}' AND COURSE ${grade} ) AND Subject != 'APPM' GROUP BY "Class Code", "Title"` + let query = `SELECT DISTINCT Subject || ' ' || Course AS "Class Code", CourseTitle as "Title", AVG(AVG_GRD) AS "Average Grade", AVG(PCT_A) as "% A", AVG(PCT_B) as "% B", AVG(PCT_C_MINUS_OR_BELOW) as "% C- and below", AVG(N_GRADE) as "No. Graded" FROM raw_data WHERE (CrsPBADiv = '${division}' AND COURSE ${grade} ) AND Subject != 'APPM' GROUP BY "Class Code", "Title"` console.log(query); |