How can I add a sub where statement in SQL if my Boolean parameter is true in JasperReports? For example, I have my SQL as below:
SELECT * FROM shop
You can add additional parameter for setting additional clause value. After that you can use $P!{} syntax in query.
The sample: