File tree 2 files changed +2
-3
lines changed
project/chicago_traffic_crashes/models/core
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ with crash_id_data as (
9
9
select *
10
10
11
11
from {{ ref(' stg_persons_data' ) }}
12
- where person_type != ' PASSENGER'
12
+ where person_type != ' PASSENGER' and age > 15
13
13
)
14
14
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ with crash_id_data as (
9
9
select * ,
10
10
row_number() over(partition by person_type, crash_record_id order by traffic_crash_date desc ) as rn
11
11
from {{ ref(' stg_persons_data' ) }}
12
- where person_type != ' PASSENGER'
12
+ where person_type != ' PASSENGER'
13
13
),
14
14
15
15
crash_info as (
@@ -19,7 +19,6 @@ crash_info as (
19
19
20
20
select
21
21
crash_id_data .person_type ,
22
- crash_id_data .age ,
23
22
crash_id_data .traffic_crash_date ,
24
23
crash_id_data .crash_month ,
25
24
crash_id_data .crash_year ,
You can’t perform that action at this time.
0 commit comments