icaros91 Posted January 7, 2013 Share Posted January 7, 2013 How about, my problem is I want to generate a report of such date to such date, the query I have in that part of the Between is like this:to_char (date, 'dd-mm-yyyy') Between $ P {date} and $ P {date1}not mark me wrong but I sum data are not. Link to comment Share on other sites More sharing options...
spierepf Posted January 7, 2013 Share Posted January 7, 2013 What types are the date field and the date and date1 parameters? I suspect that converting the date field to a character string will cause you some grief. Link to comment Share on other sites More sharing options...
icaros91 Posted January 8, 2013 Author Share Posted January 8, 2013 from what I do is send these parameters java Map parameter = new HashMap (); parametro.put ("date", day + "-" + month + "-" + year); parametro.put ("date1", day + "-" + month + "-" + year); where the variables day, month and year I get a combobox in java, and in ireport I do is get in this way TO_CHAR (date, 'dd-mm-yyy') Between $ P {date} and $ P {date1} if I do it separately if you do it correctly, for example: TO_CHAR (date, 'dd-mm-yyy') = $ P {date} but if I do it with me sum values BETWEEN statement. and try it with operators> =, <= and I also sum values Link to comment Share on other sites More sharing options...
icaros91 Posted January 8, 2013 Author Share Posted January 8, 2013 sorry for you see all along the letters but also Climbed Link to comment Share on other sites More sharing options...
honeybakliwal Posted January 8, 2013 Share Posted January 8, 2013 Select * from whereDATEADD(second,19800, dateadd(second,"", 'Jan 1, 1970'))between $P{StartDate} and $P{EndDate} here data is in epoc time that is in INTEGER datatype Hope this can help ..........:) RegardsHoney 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