ผู้ป่วย 8814 เข้าโรงพยาบาลเมื่อ 1 ปีที่แล้วได้อย่างไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how did patient 8814 enter the hospital until 1 year ago first?It is not neccessary to use all the tables.
 prescriptions:  row_id [ number]  subject_id [ number]  hadm_id [ number]  startdate [ time]  enddate [ time]  drug [ text]  dose_val_rx [ text]  dose_unit_rx [ text]  route [ text] 
SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8814 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY admissions.admittime LIMIT 1