Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. select COUNT(*) from ALLERGY where PID in (select PID from tmp_42cfr_distinct)
  2. select COUNT(*) from DIRECTIV where PID in (select PID from tmp_42cfr_distinct)
  3. select COUNT(*) from FLAG where CONTEXTID1 in (select PID from tmp_42cfr_distinct)
  4. select COUNT(*) from MEDICATE where PID in (select PID from tmp_42cfr_distinct)
  5. select COUNT(*) from OBS where PID in (select PID from tmp_42cfr_distinct)
  6. select COUNT(*) from PROBLEM where PID in (select PID from tmp_42cfr_distinct)
  7. select COUNT(*) from IMMUNIZATION where PID in (select PID from tmp_42cfr_distinct)
  8. select COUNT(*) from ORDERS where PID in (select PID from tmp_42cfr_distinct)
  9. select COUNT(*) from DOCUMENT where PID in (select PID from tmp_42cfr_distinct)
  10. select distinct pstatus from PatientProfile where PID in (select PID from tmp_42cfr_distinct)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement