In a table, there are multiple columns, include DATE1 and DATE2. I want to calculate the date difference in DATE1 and DATE2, and use it in a WHERE clause. The date difference has to between 30 to 90 days. How to do it?
I've tried to use the function below, but no luck.
@DATEDIFF ('difference', 'date', 'date')