jinwei.si Posted December 7, 2015 Share Posted December 7, 2015 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.TRANSACTIONSwhere 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 More sharing options...
jinwei.si Posted December 7, 2015 Author Share Posted December 7, 2015 On the other hand, the query works when I use "CREATED <= CURRENT_DATE + 3 DAYS" Only non-functional when I use the time operation with the parameter Link to comment Share on other sites More sharing options...
zuhayer171288 Posted December 8, 2015 Share Posted December 8, 2015 Here is the answer I got for you from google:http://stackoverflow.com/questions/1675272/jasper-reports-add-one-day-to-a-date-parameter Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now