รายละเอียดของการตอบ ::
... ใส่ความคิดเห็นตรงนี้.......
SELECT deviceID, from_unixtime(timestamp) as starttime, latitude, longitude, speedKPH, violationThreshold
FROM eventdata WHERE accountID= '" . $_SESSION['accountID'] . "' and (from_unixtime(timestamp)
BETWEEN '$sdate3' and '$edate3') and classnumber='61744' ORDER BY from_unixtime(timestamp) ASC;
ถ้าผมต้องการเพิ่ม endtime จะต้องเขียนออกมาประมาณนี้หรือเปล่าครับ
SELECT deviceID, from_unixtime(timestamp) as starttime,
(SELECT from_unixtime(timestamp) FROM eventdata WHERE accountID= '" . $_SESSION['accountID'] . "'
and (from_unixtime(timestamp) BETWEEN '$sdate3' and '$edate3') and classnumber='61746' ) as endtime
latitude, longitude, speedKPH, violationThreshold FROM eventdata WHERE accountID= '" . $_SESSION['accountID'] . "'
and (from_unixtime(timestamp) BETWEEN '$sdate3' and '$edate3') and classnumber='61744' ORDER BY from_unixtime(timestamp) ASC;