;WITH CTE AS( SELECT *, DATEADD(HOUR,DOCTIME/100,DOCDATE) DocDateHour, CAST(RIGHT(DOCTIME,2) AS INT) DocTimeOnly FROM OPOR)SELECT DATEADD(MINUTE,DocTimeOnly,DocDateHour) FROM CTEコード> プレ>
;WITH CTE AS( SELECT *, DATEADD(HOUR,DOCTIME/100,DOCDATE) DocDateHour, CAST(RIGHT(DOCTIME,2) AS INT) DocTimeOnly FROM OPOR)SELECT DATEADD(MINUTE,DocTimeOnly,DocDateHour) FROM CTEコード> プレ>