-
Notifications
You must be signed in to change notification settings - Fork 0
/
unpivot_sy20_21_gradek_math.sql
105 lines (104 loc) · 4.46 KB
/
unpivot_sy20_21_gradek_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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
--creates or overwrites table: `harlemlink.unpivots.unpivot_sy20_21_gradek_math`
CREATE OR REPLACE TABLE
`harlemlink.unpivots.unpivot_sy20_21_gradek_math` AS
SELECT
osis,
question_id,
points_earned
FROM
`harlemlink.trackers.sy20_21_gradek_math` UNPIVOT(points_Earned FOR question_id IN ( sy20_21_gradek_math_level3_unit1_q01,
sy20_21_gradek_math_level3_unit1_q02,
sy20_21_gradek_math_level3_unit1_q03,
sy20_21_gradek_math_level3_unit1_q04,
sy20_21_gradek_math_level3_unit1_q05,
sy20_21_gradek_math_level3_unit1_q06,
sy20_21_gradek_math_level3_unit1_q07,
sy20_21_gradek_math_level3_unit1_q08,
sy20_21_gradek_math_level3_unit2_q01,
sy20_21_gradek_math_level3_unit2_q02,
sy20_21_gradek_math_level3_unit2_q03,
sy20_21_gradek_math_level3_unit2_q04,
sy20_21_gradek_math_level3_unit2_q05,
sy20_21_gradek_math_level3_unit2_q06,
sy20_21_gradek_math_level3_unit2_q07,
sy20_21_gradek_math_level3_unit2_q08,
sy20_21_gradek_math_level3_unit2_q09,
sy20_21_gradek_math_level3_unit2_q10,
sy20_21_gradek_math_level3_unit2_q11,
sy20_21_gradek_math_level3_unit2_q12,
sy20_21_gradek_math_level3_unit2_q13,
sy20_21_gradek_math_level3_unit2_q14,
sy20_21_gradek_math_level3_unit2_q15,
sy20_21_gradek_math_level3_unit2_q16,
sy20_21_gradek_math_level3_unit2_q17,
sy20_21_gradek_math_level3_unit3_q01,
sy20_21_gradek_math_level3_unit3_q02,
sy20_21_gradek_math_level3_unit3_q03,
sy20_21_gradek_math_level3_unit3_q04,
sy20_21_gradek_math_level3_unit3_q05,
sy20_21_gradek_math_level3_unit3_q06,
sy20_21_gradek_math_level3_unit3_q07,
sy20_21_gradek_math_level3_unit3_q08,
sy20_21_gradek_math_level3_unit3_q09,
sy20_21_gradek_math_level3_unit3_q10,
sy20_21_gradek_math_level3_unit4_q01,
sy20_21_gradek_math_level3_unit4_q02,
sy20_21_gradek_math_level3_unit4_q03,
sy20_21_gradek_math_level3_unit4_q04,
sy20_21_gradek_math_level3_unit4_q05,
sy20_21_gradek_math_level3_unit4_q06,
sy20_21_gradek_math_level3_unit4_q07,
sy20_21_gradek_math_level3_unit4_q08,
sy20_21_gradek_math_level3_unit4_q09,
sy20_21_gradek_math_level3_unit4_q10,
sy20_21_gradek_math_level3_unit4_q11,
sy20_21_gradek_math_level3_unit4_q12,
sy20_21_gradek_math_level3_unit4_q13,
sy20_21_gradek_math_level3_unit4_q14,
sy20_21_gradek_math_level3_unit4_q15,
sy20_21_gradek_math_level3_unit4_q16,
sy20_21_gradek_math_level3_unit5_q01,
sy20_21_gradek_math_level3_unit5_q02,
sy20_21_gradek_math_level3_unit5_q03,
sy20_21_gradek_math_level3_unit5_q04,
sy20_21_gradek_math_level3_unit5_q05,
sy20_21_gradek_math_level3_unit5_q06,
sy20_21_gradek_math_level3_unit5_q07,
sy20_21_gradek_math_level3_unit5_q08,
sy20_21_gradek_math_level3_unit5_q09,
sy20_21_gradek_math_level3_unit5_q10,
sy20_21_gradek_math_level3_unit5_q11,
sy20_21_gradek_math_level3_unit5_q12,
sy20_21_gradek_math_level3_unit5_q13,
sy20_21_gradek_math_level3_unit5_q14,
sy20_21_gradek_math_level3_unit6_q01,
sy20_21_gradek_math_level3_unit6_q02,
sy20_21_gradek_math_level3_unit6_q03,
sy20_21_gradek_math_level3_unit6_q04,
sy20_21_gradek_math_level3_unit6_q05,
sy20_21_gradek_math_level3_unit6_q06,
sy20_21_gradek_math_level3_unit6_q07,
sy20_21_gradek_math_level3_unit6_q08,
sy20_21_gradek_math_level3_unit6_q09,
sy20_21_gradek_math_level3_unit6_q10,
sy20_21_gradek_math_level3_unit6_q11,
sy20_21_gradek_math_level3_unit6_q12,
sy20_21_gradek_math_level3_unit6_q13,
sy20_21_gradek_math_level3_unit6_q14,
sy20_21_gradek_math_level3_unit6_q15,
sy20_21_gradek_math_level3_unit6_q16,
sy20_21_gradek_math_level3_unit6_q17,
sy20_21_gradek_math_level3_unit6_q18,
sy20_21_gradek_math_level3_unit6_q19,
sy20_21_gradek_math_level3_unit6_q20,
sy20_21_gradek_math_level3_unit6_q21,
sy20_21_gradek_math_level3_unit6_q22,
sy20_21_gradek_math_eoy_ia_q01,
sy20_21_gradek_math_eoy_ia_q02,
sy20_21_gradek_math_eoy_ia_q03,
sy20_21_gradek_math_eoy_ia_q04,
sy20_21_gradek_math_eoy_ia_q05,
sy20_21_gradek_math_eoy_ia_q06,
sy20_21_gradek_math_eoy_ia_q07,
sy20_21_gradek_math_eoy_ia_q08,
sy20_21_gradek_math_eoy_ia_q09 )) ;