Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Rounding hour and minute from time stamp to the closest hour - response (1) by dnoeth

$
0
0

Hi Ozge,
ROUND always results in a DATE (blame Oracle), so you can't use it in that case.
What's the datatype of solved_at_ts and what datatype do you need as result? When you add 30 minutes you could simply extract the hour, e.g. 

EXTRACT(HOUR FROM solved_at_ts + INTERVAL '30' MINUTE)

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>