aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-01-04 19:04:03 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2024-01-04 19:04:03 +0530
commit289d5a1a6d6997722f35b7f7303c7b3ce9afffa4 (patch)
tree5be8e1c7374d32b13257e6d58e48e20943fea58f
parent74e62a80677d5158b0573d37e27e59030a5fa7d8 (diff)
show average grades for class
-rw-r--r--index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.html b/index.html
index 201bee2..1ead0d4 100644
--- a/index.html
+++ b/index.html
@@ -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);