Skip to content

Commit

Permalink
DMP-536 - Post deletion report - DBA query (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Edwards-cgi authored Sep 30, 2024
1 parent f415e24 commit c5c146a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions report-queries/case-post-deletion-report.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
select ch.courthouse_name, c.case_number, c.data_anonymised_ts
from darts.court_case c
join darts.courthouse ch on ch.cth_id =c.cth_id
where c.is_data_anonymised=true
and c.data_anonymised_ts BETWEEN current_timestamp - interval '30 day' and current_timestamp - interval '1 day'
order by ch.courthouse_name, c.case_number asc;

0 comments on commit c5c146a

Please sign in to comment.