GSI


select top 100 value, CONVERT(VARCHAR, datepart(hh,regDate))+':'+CONVERT(VARCHAR, datepart(mi,regDate)) as tick
from TBL_REP_CPU_INPUT order by regDate desc

-- 출력결과 --
value       tick
----------- -------------------------------------------------------------
3           14:49
2           14:49
4           14:49

Tip : 8시간 후의 날짜와 시간을 10분 단위로 반환

Posted by gsi
: