gregory.west Posted June 2, 2016 Share Posted June 2, 2016 How do I write the where clause in Jasper Reports so I can select all the records where a todo date (todo) is less than or equal to the date the report is being run? Normally I would do something like:select table.* from table where todo <= today();Any ideas? Link to comment Share on other sites More sharing options...
Solution hozawa Posted June 3, 2016 Solution Share Posted June 3, 2016 It probably depends on class type of "todo" field.Tried it with the sample order database table that has orderdate as a timestamp.Following seems OK on mysqlSELECT * FROM orders WHERE orderdate <= now() 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