Skip to content

Commit

Permalink
Remove deactivated rows from views (#74)
Browse files Browse the repository at this point in the history
* Remove deactivated rows from appeal view

* Add deactivat condition to vw_ratio_stats
  • Loading branch information
wrridgeway authored Aug 18, 2023
1 parent 4edd96e commit 6a58af9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws-athena/views/default-vw_pin_appeal.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ LEFT JOIN {{ source('iasworld', 'htagnt') }} AS htagnt
ON htpar.cpatty = htagnt.agent
WHERE htpar.cur = 'Y'
AND htpar.caseno IS NOT NULL
AND htpar.deactivat IS NULL
1 change: 1 addition & 0 deletions aws-athena/views/reporting-vw_ratio_stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ iasworld_values AS (
WHERE (asmt_all.valclass IS NULL OR asmt_all.taxyr < '2020')
AND asmt_all.procname IN ('CCAOVALUE', 'CCAOFINAL', 'BORVALUE')
AND asmt_all.taxyr >= '2021'
AND asmt_all.deactivat IS NULL
GROUP BY
asmt_all.parid,
asmt_all.taxyr,
Expand Down

0 comments on commit 6a58af9

Please sign in to comment.