|
|
|
@@ -39,6 +39,12 @@ pivoted as (
|
|
|
|
|
max(case when subject = 'Reading'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_score') }} end) as reading_progress,
|
|
|
|
|
max(case when subject = 'Reading'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_lower_conf_interval') }} end) as reading_progress_lower_ci,
|
|
|
|
|
max(case when subject = 'Reading'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_upper_conf_interval') }} end) as reading_progress_upper_ci,
|
|
|
|
|
max(case when subject = 'Reading'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('absent_or_not_able_to_access_percent') }} end) as reading_absence_pct,
|
|
|
|
@@ -53,6 +59,15 @@ pivoted as (
|
|
|
|
|
max(case when subject = 'Writing'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_score') }} end) as writing_progress,
|
|
|
|
|
max(case when subject = 'Writing'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_lower_conf_interval') }} end) as writing_progress_lower_ci,
|
|
|
|
|
max(case when subject = 'Writing'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_upper_conf_interval') }} end) as writing_progress_upper_ci,
|
|
|
|
|
max(case when subject = 'Writing'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('working_towards_expected_standard_pupil_percent') }} end) as writing_working_towards_pct,
|
|
|
|
|
max(case when subject = 'Writing'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('absent_or_not_able_to_access_percent') }} end) as writing_absence_pct,
|
|
|
|
@@ -70,6 +85,12 @@ pivoted as (
|
|
|
|
|
max(case when subject = 'Maths'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_score') }} end) as maths_progress,
|
|
|
|
|
max(case when subject = 'Maths'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_lower_conf_interval') }} end) as maths_progress_lower_ci,
|
|
|
|
|
max(case when subject = 'Maths'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('progress_measure_upper_conf_interval') }} end) as maths_progress_upper_ci,
|
|
|
|
|
max(case when subject = 'Maths'
|
|
|
|
|
and breakdown_topic = 'All pupils' and breakdown = 'Total'
|
|
|
|
|
then {{ safe_numeric('absent_or_not_able_to_access_percent') }} end) as maths_absence_pct,
|
|
|
|
@@ -143,13 +164,20 @@ select
|
|
|
|
|
p.reading_high_pct,
|
|
|
|
|
p.reading_avg_score,
|
|
|
|
|
p.reading_progress,
|
|
|
|
|
p.reading_progress_lower_ci,
|
|
|
|
|
p.reading_progress_upper_ci,
|
|
|
|
|
p.writing_expected_pct,
|
|
|
|
|
p.writing_high_pct,
|
|
|
|
|
p.writing_progress,
|
|
|
|
|
p.writing_progress_lower_ci,
|
|
|
|
|
p.writing_progress_upper_ci,
|
|
|
|
|
p.writing_working_towards_pct,
|
|
|
|
|
p.maths_expected_pct,
|
|
|
|
|
p.maths_high_pct,
|
|
|
|
|
p.maths_avg_score,
|
|
|
|
|
p.maths_progress,
|
|
|
|
|
p.maths_progress_lower_ci,
|
|
|
|
|
p.maths_progress_upper_ci,
|
|
|
|
|
p.gps_expected_pct,
|
|
|
|
|
p.gps_high_pct,
|
|
|
|
|
p.gps_avg_score,
|
|
|
|
|