Skip to content

Commit

Permalink
add rn_application_school
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Walters committed Nov 26, 2024
1 parent 9061087 commit 253dbdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,8 @@ select
then '<2.00'
end as hs_gpa_bands,
from {{ ref("int_kippadb__roster") }} as r
left join {{ ref("base_kippadb__application") }} as a on r.contact_id = a.applicant
left join
{{ ref("base_kippadb__application") }} as a
on r.contact_id = a.applicant
and a.rn_application_school = 1
left join {{ ref("int_kippadb__enrollment_pivot") }} as ei on r.contact_id = ei.student
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,8 @@ select
if(
is_submitted and is_certificate and is_accepted, true, false
) as is_accepted_certificate,
row_number() over (
partition by applicant, school
order by is_matriculated desc, is_accepted desc, is_submitted desc
) as rn_application_school,
from app_acct

0 comments on commit 253dbdf

Please sign in to comment.