Skip to content

Commit bc41c40

Browse files
committed
Update 1d_gold_curation.sql
1 parent 7cd89ba commit bc41c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql_scripts/1d_gold_curation.sql

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ with cte1 as (
1919
OR gender is null
2020
OR yob < 75
2121
OR frd is null
22+
OR frd > to_date(CONCAT(RIGHT(current_database(), 6), '01'), 'YYYYMMDD')
2223
)
2324
INSERT INTO {SOURCE_NOK_SCHEMA}.patient
2425
SELECT t1.*

0 commit comments

Comments
 (0)