I have a query that returns expiration dates:
SELECT ci.accountnumber
, ci.accountname
, cvu.ExpirationDate
FROM dbo.clientinfo ci
INNER JOIN clientvehicleunit cvu ON ci.clientid = cvu.clientid
The expiration dates can be anytime during any month and any year.
I need to return counts of how many units are due to expire within each month for a 12 month period....
I have no idea how I would do this?