-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis.sql
More file actions
41 lines (35 loc) · 1002 Bytes
/
Copy pathanalysis.sql
File metadata and controls
41 lines (35 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- get confidence rating by day
SELECT `confidence_rating`
FROM `reflections`
WHERE `creator_id` = ?
ORDER BY `created_at`;
-- average confidence rating by subject (bar)
SELECT `subject`, AVERAGE(`confidence_rating`)
FROM `reflections`
WHERE `creator_id` = ?
GROUP BY `subject`
ORDER BY `created_at`;
-- assessment types
SELECT `assessment_type`, COUNT(`assessment_type`)
FROM `reflections`
WHERE `creator_id` = ?
GROUP BY `subject`
ORDER BY `created_at`;
-- get prep days vs confidence rating
SELECT `prep_days`, `confidence_rating`
FROM `reflections`
WHERE `creator_id` = ?
ORDER BY `created_at`;
-- tags used most frequently (bar chart)
-- average confidence by assessment type (bar chart)
SELECT `assessment_type`, AVERAGE(`assessment_type`)
FROM `reflections`
WHERE `creator_id` = ?
GROUP BY `assessment_type`
ORDER BY `created_at`;
-- reflections per subject (bar chart)
SELECT `subject`, COUNT(`subject`)
FROM `reflections`
WHERE `creator_id` = ?
GROUP BY `subject`
ORDER BY `created_at`;