Jump to content
We've recently updated our Privacy Statement, available here ×

Add 1 day to the date parameter.


jinwei.si

Recommended Posts

Hi,

I need to query the dataset between selected parameters ${startDate} and ${endDate}. However, the result should contain all the data from the last date as well (until the 24 o clock at endDate instead of 0 o clock).

So I tried to change the query to (I am using DB2):

select * 
from HWE.TRANSACTIONS
where 
CREATED >= $P{startDate} AND 
CREATED <= $P{endDate} + 1 days
 
It gives an error message that the SQL query isn't correct.
I have tried to create a new parameter, that didn't work either.
 
Thank you.
 
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...