Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. select disease.condition_id, (disease::float/total::float) as prevalence
  2. from (
  3. select condition_id, count(person_id)
  4. from a.condition
  5. where condition_id=316139
  6. group by condition_id
  7. ) as disease
  8. join (
  9. select count(distinct person_id) as total
  10. from a.person
  11. )as total;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement