calculate the number of patients discharged from hospital since 6 years ago.
select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is not null and datetime(admissions.dischtime) >= datetime(current_time,'-6 year')