I have a manual query like:
select x, y, z, count(*) N
from table_a, table_b
where open_date <= '31.12.2020'
and nvl(close_date, '31.12.2020') >= '31.12.2020'
group by x, y, z
I need to upgrade it so that the user can choose any date in the visualization (instead of the specified '12/31/2020')
Can someone please help me?