I have a query with a where condition like so:
WHERE A.event_date BETWEEN B.start_date AND B.end_date
The complexity is that if B.sta
B.sta
The COALESCE() function will return the first non-null value in the parameter list. Give this a try:
WHERE A.event_date BETWEEN COALESCE(B.start_date,'1900-01-01') and COALESCE(B.end_date,CURRENT_TIMESTAMP)