on 2009 Jun 18 2:29 PM
Hello,
I am trying to use a query to get data from our database for the current hour.
I am using the below for an existing report for previous hour.
{TTID_129L3597.Rn_Create_Date} in dateadd("h",-1,dateadd("n",-minute(currentdatetime),dateadd("s",-second(currentdatetime),currentdatetime))) to
dateadd("n",-minute(currentdatetime),dateadd("s",-second(currentdatetime),currentdatetime))
Is there any simpler formulas that can be used to get data created during the current hour?
Thanks,
Joe
The logic would be the same but if you are looking to fetch data for the current hour then try this:
date({TTID_129L3597.Rn_Create_Date}) = currentdate and
time({TTID_129L3597.Rn_Create_Date}) in
time(hour(currenttime),0,0) to time(hour(currenttime),59,59);
Edited by: Sanjay Kodidine on Jun 18, 2009 7:14 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.