ผู้ป่วย 59049 ได้รับการทดสอบกลูโคสตั้งแต่วันที่ 01/2105 หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
has patient 59049 received a glucose test since 01/2105?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 COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 59049) AND STRFTIME('%y-%m', labevents.charttime) >= '2105-01'