-- Wrong Partitioning while getting patient age and
-- Wrong Partitioning while getting patient age and

-- To get Patient's first Admit time partition by p.subject_id only not with a.hadm_id too. as a.hadm_id is unique and will return all patient admissions as first admission. ( same as done if preceding script) 

-- Add distinct to age query as target to get patient's age only and will not show duplicate and misleading results while grouping.

Former-commit-id: e7543d2a8ed1baae85fe39d1e2ba414f6ae450df
MIT-LCP/mimic-website,MIT-LCP/mimic-website,MIT-LCP/mimic-website