คนไข้ 8562 นอนโรงพยาบาลครั้งแรกนานแค่ไหน ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how long does patient 8562 stay in hospital for the first time.It is not neccessary to use all the tables.
 diagnoses_icd:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icd9_code [ text]  charttime [ time] 
SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 8562 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1