Reputation: 61
I've got 2 date columns in my table (start_date, end_date)
.
I've tried Datediff(day, start_date, end_date)
, but I was prompt with:
invalid column name
How can I calculate the date difference between these 2 columns?
Upvotes: 4
Views: 47137
Reputation: 1
be certain that your columns are formated correctly to either be a DATE or DATETIME
Upvotes: 0
Reputation: 26386
Should be Datediff(day, start_date, end_date)
. There is no 's' at the end of the day
Upvotes: 2