อะไรคือความแตกต่างของอัตราการเต้นของหัวใจในผู้ป่วย 015-96048 ที่วัดที่ 2105-08-15 095700 เทียบกับค่าที่วัดที่ 2105-08-15 095200?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the difference of heartrate in patient 015-96048 measured at 2105-08-15 095700 compared to the value measured at 2105-08-15 095200?It is not neccessary to use all the tables.
 patient:  uniquepid [ text]  patienthealthsystemstayid [ number]  patientunitstayid [ number]  gender [ text]  age [ text]  ethnicity [ text]  hospitalid [ number]  wardid [ number]  admissionheight [ number]  admissionweight [ number]  dischargeweight [ number]  hospitaladmittime [ time]  hospitaladmitsource [ text]  unitadmittime [ time]  unitdischargetime [ time]  hospitaldischargetime [ time]  hospitaldischargestatus [ text] 
SELECT (SELECT vitalperiodic.heartrate FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048')) AND NOT vitalperiodic.heartrate IS NULL AND vitalperiodic.observationtime = '2105-08-15 09:57:00') - (SELECT vitalperiodic.heartrate FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048')) AND NOT vitalperiodic.heartrate IS NULL AND vitalperiodic.observationtime = '2105-08-15 09:52:00')