Skip to content

Commit

Permalink
Extend prune command to include observation
Browse files Browse the repository at this point in the history
  • Loading branch information
james-cockayne-ad committed Mar 18, 2024
1 parent 2ca77b4 commit ae84b33
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ from cdm.person p
inner join @personsToDelete ptd
on p.person_id = ptd.person_id;

delete o
from cdm.observation o
inner join @personsToDelete ptd
on o.person_id = ptd.person_id;

delete l
from cdm.location l
where not exists (
Expand Down

0 comments on commit ae84b33

Please sign in to comment.