I was looking for the answer to this question, and I found here that DATEDIFF()
function is a way to do it when you have the dates. But, what if you don't have specific dates?
What if you want to find the interval of time between the date in 2 columns (rental_date, return_date
).
I tried to use DATEDIFF()
function, but it looks like you need the actual date.