I have a report that has a start date as an in parameter that can either have a value or be null at runtime. The where clause of my report sql is:
where date_received >= _start_date
If I don't put a value in for _start_date then no data is returned. How do I set up the where clause of the query so that if _start_date is null, then the query should return all records without regarding a start_date? The where clause must also address the potential of _start_date having a valid value.
Thanks for your assistance.
where date_received >= _start_date
If I don't put a value in for _start_date then no data is returned. How do I set up the where clause of the query so that if _start_date is null, then the query should return all records without regarding a start_date? The where clause must also address the potential of _start_date having a valid value.
Thanks for your assistance.