diff --git a/src/dbt/kipptaf/models/powerschool/staging/stg_powerschool__u_studentsuserfields.sql b/src/dbt/kipptaf/models/powerschool/staging/stg_powerschool__u_studentsuserfields.sql index 2004eee314..6043c7008e 100644 --- a/src/dbt/kipptaf/models/powerschool/staging/stg_powerschool__u_studentsuserfields.sql +++ b/src/dbt/kipptaf/models/powerschool/staging/stg_powerschool__u_studentsuserfields.sql @@ -1,9 +1,23 @@ -{{ - dbt_utils.union_relations( - relations=[ - source("kippnewark_powerschool", model.name), - source("kippcamden_powerschool", model.name), - source("kippmiami_powerschool", model.name), - ] +with + union_relations as ( + {{ + dbt_utils.union_relations( + relations=[ + source("kippnewark_powerschool", model.name), + source("kippcamden_powerschool", model.name), + source("kippmiami_powerschool", model.name), + ] + ) + }} ) -}} + +select + studentsdcid, + fleid, + newark_enrollment_number, + infosnap_id, + infosnap_opt_in, + media_release, + rides_staff, + is_504, +from union_relations