ครั้งแรกที่ผู้ป่วย 12927 มีฮีมาโตคริตสูงสุดในเดือนนี้คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what was the first time patient 12927 had a maximum of hematocrit in this month?It is not neccessary to use all the tables.
 procedures_icd:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icd9_code [ text]  charttime [ time] 
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12927) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY labevents.valuenum DESC, labevents.charttime LIMIT 1