Skip to content

Commit

Permalink
Merge pull request #2172 from TEAMSchools/dedup_try_3
Browse files Browse the repository at this point in the history
added client date on join to dedup rounds
  • Loading branch information
cbini authored Nov 13, 2024
2 parents dcb7f2d + 306d3c9 commit e5dfa7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ with
p.mclass_measure_standard_score_change,

row_number() over (
partition by
p.surrogate_key, p.measure, a.period, a.pm_round, a.measure_standard
partition by p.surrogate_key, p.measure, a.pm_round
order by p.mclass_measure_standard_score desc
) as rn_highest,

Expand All @@ -128,6 +127,7 @@ with
and p.region = a.region
and p.assessment_grade_int = a.grade_level
and p.measure = a.measure_standard
and p.client_date between a.start_date and a.end_date
where
p.academic_year >= {{ var("current_academic_year") - 1 }}
and p.enrollment_grade = p.assessment_grade
Expand Down

0 comments on commit e5dfa7b

Please sign in to comment.