我有以下SQL,SQL查詢小於或等於16小時30分鐘?
SELECT dims_branchcode,
dims_documentname,
dims_branchname,
Count(dims_documentname) AS NoofRequestWithinCutoff,
track.sentdate
FROM track
INNER JOIN td_wf_dims394
ON track.documentno = td_wf_dims394.sno
WHERE (track.indexcardname = 'TD_WF_DIMS394'
AND track.sender = 0
AND Datepart(hh, senttime) <= 16)
GROUP BY dims_branchcode,
dims_branchname,
dims_documentname,
sentdate
ORDER BY track.sentdate
這是16小時工作很大。但我需要16小時30分鐘如何指定小時和分鐘
'senttime'列的數據類型是什麼? – 2013-05-02 10:55:44