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
I rolled my dates up to the same date using EOMONTH() and compared them. So, if I had date1 as 09/18/2019 and date2 as 09/16/2019 they would both roll up to 09/30/2019. It isn't a direct answer to your question, but it worked in my situation.