Hi,
I'm trying to query for the number of months between two dates. I have a table with a StartDate column and an EndDate column. I want to know the difference between them.
i.e.
SELECT StartDate - EndDate
FROM MyTable
WHERE ID = 1
(error: this query gives number of DAYS, not months)
MyTable's columns are defined as follows:
ID As Integer,
StartDate AS DATE FORMAT 'YY/MM/DD' NOT NULL,
End_Date DATE FORMAT 'YY/MM/DD' NOT NULL
Thanks!
I'm trying to query for the number of months between two dates. I have a table with a StartDate column and an EndDate column. I want to know the difference between them.
i.e.
SELECT StartDate - EndDate
FROM MyTable
WHERE ID = 1
(error: this query gives number of DAYS, not months)
MyTable's columns are defined as follows:
ID As Integer,
StartDate AS DATE FORMAT 'YY/MM/DD' NOT NULL,
End_Date DATE FORMAT 'YY/MM/DD' NOT NULL
Thanks!