I am trying some examples for DateDiff Function
SELECT DATEDIFF(day,'2008-06-05','2008-08-05') AS DiffDate
This statement gives me an error From keyword not found where expected. Why do I get this error and how can I solve it? Also, when I try this :
SELECT DATEDIFF(day,datebegin,datestop)
From table;
I get this error "datediff" invalid identifier
.
How can I get day difference?