Skip to content

Commit

Permalink
fixing cal_year to be the calendar year for HOC (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryamanda authored Dec 17, 2024
2 parents b430c43 + 9b4703c commit 2467554
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dbt/models/marts/hoc/dim_hoc_starts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ internal_tutorials as (
final as (
select
hoc_activity.hoc_start_id
, hoc_activity.started_at
, sy.school_year_int as cal_year
, hoc_activity.started_at as started_at
, extract(year from hoc_activity.started_at) as cal_year
, sy.school_year
--, hoc_activity.referer
, hoc_activity.company
Expand All @@ -34,11 +34,11 @@ final as (
then 1
else 0
end as is_flagged_for_quality
, hoc_activity.city
, hoc_activity.country
, hoc_activity.city as city
, hoc_activity.country as country
, hoc_activity.state
, hoc_activity.state_code
, hoc_activity.country_code
--, hoc_activity.country_code
from hoc_activity
join school_years as sy
on hoc_activity.started_at
Expand Down

0 comments on commit 2467554

Please sign in to comment.