How to add days to a DATE variable?
Hi,
I want to run a query based on my date variable with subtracting 7 days from it. Thanks.
p_date DATE;
Select * from table where theDate between to_date(p_date , 'yyyy/mm/dd') to_date(p_date - 7, 'YYYY/mm/dd');
Thanks.