-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2371 from TEAMSchools/2335-add-miami-fte-data-to-…
…base_powerschool__student_enrollments 2335 add miami fte data to base powerschool student enrollments
- Loading branch information
Showing
10 changed files
with
142 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/dbt/kippmiami/models/fldoe/intermediate/int_fldoe__fte_pivot.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
with | ||
fte as ( | ||
select student_id, academic_year, survey_number, fte_capped, | ||
from {{ ref("stg_fldoe__fte") }} | ||
) | ||
|
||
select student_id, academic_year, survey_1, survey_2, survey_3, | ||
from | ||
fte pivot ( | ||
max(fte_capped) | ||
for survey_number in (1 as `survey_1`, 2 as `survey_2`, 3 as `survey_3`) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
src/dbt/kipptaf/models/fldoe/intermediate/int_fldoe__fast_standard_performance_unpivot.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
{{ dbt_utils.union_relations(relations=[source("kippmiami_fldoe", model.name)]) }} | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
source("kippmiami_fldoe", "int_fldoe__fast_standard_performance_unpivot") | ||
] | ||
) | ||
}} |
5 changes: 5 additions & 0 deletions
5
src/dbt/kipptaf/models/fldoe/intermediate/int_fldoe__fte_pivot.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[source("kippmiami_fldoe", "int_fldoe__fte_pivot")] | ||
) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.