-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunpivot_sy20_21_grade2_math.sql
87 lines (86 loc) · 3.63 KB
/
unpivot_sy20_21_grade2_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
--creates or overwrites table: `harlemlink.unpivots.unpivot_sy20_21_grade2_math`
CREATE OR REPLACE TABLE
`harlemlink.unpivots.unpivot_sy20_21_grade2_math` AS
SELECT
osis,
question_id,
points_earned
FROM
`harlemlink.trackers.sy20_21_grade2_math` UNPIVOT(points_Earned FOR question_id IN ( sy_20_21_grade2_math_level3_unit1_q01,
sy_20_21_grade2_math_level3_unit1_q02,
sy_20_21_grade2_math_level3_unit1_q03,
sy_20_21_grade2_math_level3_unit1_q04,
sy_20_21_grade2_math_level3_unit1_q05,
sy_20_21_grade2_math_level3_unit1_q06,
sy_20_21_grade2_math_level3_unit1_q07,
sy_20_21_grade2_math_level3_unit1_q08,
sy_20_21_grade2_math_level3_unit2_q01,
sy_20_21_grade2_math_level3_unit2_q02,
sy_20_21_grade2_math_level3_unit2_q03,
sy_20_21_grade2_math_level3_unit2_q04,
sy_20_21_grade2_math_level3_unit2_q05,
sy_20_21_grade2_math_level3_unit2_q06,
sy_20_21_grade2_math_level3_unit2_q07,
sy_20_21_grade2_math_level3_unit2_q08,
sy_20_21_grade2_math_level3_unit2_q09,
sy_20_21_grade2_math_level3_unit2_q10,
sy_20_21_grade2_math_level3_unit2_q11,
sy_20_21_grade2_math_level3_unit2_q12,
sy_20_21_grade2_math_level3_unit2_q13,
sy_20_21_grade2_math_level3_unit2_q14,
sy_20_21_grade2_math_level3_unit2_q15,
sy_20_21_grade2_math_level3_unit2_q16,
sy_20_21_grade2_math_level3_unit2_q17,
sy_20_21_grade2_math_level3_unit2_q18,
sy_20_21_grade2_math_level3_unit2_q19,
sy_20_21_grade2_math_level3_unit2_q20,
sy_20_21_grade2_math_level3_unit2_q21,
sy_20_21_grade2_math_level3_unit2_q22,
sy_20_21_grade2_math_level3_unit3_q01,
sy_20_21_grade2_math_level3_unit3_q02,
sy_20_21_grade2_math_level3_unit3_q03,
sy_20_21_grade2_math_level3_unit3_q04,
sy_20_21_grade2_math_level3_unit3_q05,
sy_20_21_grade2_math_level3_unit3_q06,
sy_20_21_grade2_math_level3_unit3_q07,
sy_20_21_grade2_math_level3_unit3_q08,
sy_20_21_grade2_math_level3_unit3_q09,
sy_20_21_grade2_math_level3_unit3_q10,
sy_20_21_grade2_math_level3_unit3_q11,
sy_20_21_grade2_math_level3_unit3_q12,
sy_20_21_grade2_math_level3_unit3_q13,
sy_20_21_grade2_math_level3_unit3_q14,
sy_20_21_grade2_math_level3_unit3_q15,
sy_20_21_grade2_math_level3_unit3_q16,
sy_20_21_grade2_math_level3_unit4_q01,
sy_20_21_grade2_math_level3_unit4_q02,
sy_20_21_grade2_math_level3_unit4_q03,
sy_20_21_grade2_math_level3_unit4_q04,
sy_20_21_grade2_math_level3_unit4_q05,
sy_20_21_grade2_math_level3_unit4_q06,
sy_20_21_grade2_math_level3_unit4_q07,
sy_20_21_grade2_math_level3_unit4_q08,
sy_20_21_grade2_math_level3_unit4_q09,
sy_20_21_grade2_math_level3_unit4_q10,
sy_20_21_grade2_math_level3_unit4_q11,
sy_20_21_grade2_math_level3_unit4_q12,
sy_20_21_grade2_math_level3_unit4_q13,
sy_20_21_grade2_math_level3_unit4_q14,
sy_20_21_grade2_math_level3_unit4_q15,
sy_20_21_grade2_math_level3_unit4_q16,
sy_20_21_grade2_eoy_ia_q01,
sy_20_21_grade2_eoy_ia_q02,
sy_20_21_grade2_eoy_ia_q03,
sy_20_21_grade2_eoy_ia_q04,
sy_20_21_grade2_eoy_ia_q05,
sy_20_21_grade2_eoy_ia_q06,
sy_20_21_grade2_eoy_ia_q07,
sy_20_21_grade2_eoy_ia_q08,
sy_20_21_grade2_eoy_ia_q09,
sy_20_21_grade2_eoy_ia_q10,
sy_20_21_grade2_eoy_ia_q11,
sy_20_21_grade2_eoy_ia_q12,
sy_20_21_grade2_eoy_ia_q13,
sy_20_21_grade2_eoy_ia_q14,
sy_20_21_grade2_eoy_ia_q15,
sy_20_21_grade2_eoy_ia_q16 )) ;