I am having trouble determining the best way to compare dates in SQL based on month and year only.
We do calculations based on dates and since billing occurs on a monthl
You can filter the month and year of a given date to the current date like so:
SELECT * FROM tableName WHERE month(date2) = month(getdate()) and year(date2) = year(getdate())
Just replace the GETDATE() method with your desired date.
GETDATE()