Skip to content

Commit

Permalink
fix oracle query for natinf (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
thoomasbro authored Jan 23, 2023
2 parents 5b69eca + 017ba00 commit 1593927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datascience/src/pipeline/queries/fmc/natinf.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WITH natinfs AS (
)
SELECT id, natinf_code, regulation, infraction_category, infraction
FROM (
SELECT id, natinf_code, regulation, infraction_category, infraction, row_number() over (partition by natinf_code) as row_num
SELECT id, natinf_code, regulation, infraction_category, infraction, row_number() over (partition by natinf_code order by natinf_code, regulation) as row_num
FROM natinfs
order by natinf_code, regulation
) t
Expand Down

0 comments on commit 1593927

Please sign in to comment.