-
Notifications
You must be signed in to change notification settings - Fork 0
/
unpivot_sy20_21_grade3_math.sql
70 lines (69 loc) · 2.9 KB
/
unpivot_sy20_21_grade3_math.sql
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
--creates or overwrites table: `harlemlink.unpivots.unpivot_sy20_21_grade3_math`
CREATE OR REPLACE TABLE
`harlemlink.unpivots.unpivot_sy20_21_grade3_math` AS
SELECT
osis,
question_id,
points_earned
FROM
`harlemlink.trackers.sy20_21_grade3_math` UNPIVOT(points_Earned FOR question_id IN (sy20_21_grade3_math_level3_unit1_q01,
sy20_21_grade3_math_level3_unit1_q02,
sy20_21_grade3_math_level3_unit1_q03,
sy20_21_grade3_math_level3_unit1_q04,
sy20_21_grade3_math_level3_unit1_q05,
sy20_21_grade3_math_level3_unit1_q06,
sy20_21_grade3_math_level3_unit1_q07,
sy20_21_grade3_math_level3_unit1_q08,
sy20_21_grade3_math_level3_unit1_q09,
sy20_21_grade3_math_level3_unit1_q10,
sy20_21_grade3_math_level3_unit2_q01,
sy20_21_grade3_math_level3_unit2_q02,
sy20_21_grade3_math_level3_unit2_q03,
sy20_21_grade3_math_level3_unit2_q04,
sy20_21_grade3_math_level3_unit2_q05,
sy20_21_grade3_math_level3_unit2_q06,
sy20_21_grade3_math_level3_unit2_q07,
sy20_21_grade3_math_level3_unit2_q08,
sy20_21_grade3_math_level3_unit2_q09,
sy20_21_grade3_math_level3_unit2_q10,
sy20_21_grade3_math_level3_unit2_q11,
sy20_21_grade3_math_level3_unit3_q01,
sy20_21_grade3_math_level3_unit3_q02,
sy20_21_grade3_math_level3_unit3_q03,
sy20_21_grade3_math_level3_unit3_q04,
sy20_21_grade3_math_level3_unit3_q05,
sy20_21_grade3_math_level3_unit3_q06,
sy20_21_grade3_math_level3_unit3_q07,
sy20_21_grade3_math_level3_unit3_q08,
sy20_21_grade3_math_level3_unit3_q09,
sy20_21_grade3_math_level3_unit4_q01,
sy20_21_grade3_math_level3_unit4_q02,
sy20_21_grade3_math_level3_unit4_q03,
sy20_21_grade3_math_level3_unit4_q04,
sy20_21_grade3_math_level3_unit4_q05,
sy20_21_grade3_math_level3_unit4_q06,
sy20_21_grade3_math_level3_unit4_q07,
sy20_21_grade3_math_level3_unit4_q08,
sy20_21_grade3_math_level3_unit5_q01,
sy20_21_grade3_math_level3_unit5_q02,
sy20_21_grade3_math_level3_unit5_q03,
sy20_21_grade3_math_level3_unit5_q04,
sy20_21_grade3_math_level3_unit5_q05,
sy20_21_grade3_math_level3_unit5_q06,
sy20_21_grade3_math_level3_unit5_q07,
sy20_21_grade3_math_level3_unit5_q08,
sy20_21_grade3_math_level3_unit5_q09,
sy20_21_grade3_math_level3_unit5_q10,
sy20_21_grade3_math_eoy_ia_q01,
sy20_21_grade3_math_eoy_ia_q02,
sy20_21_grade3_math_eoy_ia_q03,
sy20_21_grade3_math_eoy_ia_q04,
sy20_21_grade3_math_eoy_ia_q05,
sy20_21_grade3_math_eoy_ia_q06,
sy20_21_grade3_math_eoy_ia_q07,
sy20_21_grade3_math_eoy_ia_q08,
sy20_21_grade3_math_eoy_ia_q09,
sy20_21_grade3_math_eoy_ia_q10,
sy20_21_grade3_math_eoy_ia_q11,
sy20_21_grade3_math_eoy_ia_q12,
sy20_21_grade3_math_eoy_ia_q13 )) ;