Skip to content

Commit 41cf8cd

Browse files
authoredMar 9, 2025
Merge pull request #18 from leoimewore/dbt-branch
Dbt branch
2 parents c3ba73d + f99b341 commit 41cf8cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎project/chicago_traffic_crashes/models/core/age_distri.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with crash_id_data as (
99
select *
1010

1111
from {{ ref('stg_persons_data') }}
12-
where person_type != 'PASSENGER'
12+
where person_type != 'PASSENGER' and age > 15
1313
)
1414

1515

‎project/chicago_traffic_crashes/models/core/fact_traffic_accidents.sql

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with crash_id_data as (
99
select *,
1010
row_number() over(partition by person_type, crash_record_id order by traffic_crash_date desc) as rn
1111
from {{ ref('stg_persons_data') }}
12-
where person_type != 'PASSENGER'
12+
where person_type != 'PASSENGER'
1313
),
1414

1515
crash_info as (
@@ -19,7 +19,6 @@ crash_info as (
1919

2020
select
2121
crash_id_data.person_type,
22-
crash_id_data.age,
2322
crash_id_data.traffic_crash_date,
2423
crash_id_data.crash_month,
2524
crash_id_data.crash_year,

0 commit comments

Comments
 (0)
Please sign in to comment.