Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: Get correct date and time when current time is over 12 hrs

$
0
0
Author: Rohit Umarjikar
Posted: Sat Oct 15, 2016 1:43 am (GMT 5.5)

Took out -1(assuming"fetch sales data for every past 1 hour" done before) but I guess range is still needed, after 24:00:00 even though we are entering into next day and that's technically true but here TS wants to go back 1 hour which then gets us back to previous day date but TS unable to get that date instead getting the next date. So basically TS wants previous date only when it is between midnight till 1am.
_________________
Regards,
Rohit Umarjikar
"Knowledge is knowing that a tomato is a fruit, but Wisdom is knowing not to put it in a fruit salad."icon_razz.gif


Viewing all articles
Browse latest Browse all 8500

Trending Articles