I have the following where
condition:
lr."dateEnd" >= to_date(?, 'dd.mm.yyyy') and lr."dateEnd" <= to_date(?, 'dd.mm.yyyy')
All works fine. But the second unnamed parameter is optional. How to check if it's empty or null then don't check the second condition?