I have a query (attached) that is going to be used to generate a date dimension.
One requirement is that there is a column that states which pay period it is (1, 2, 3, etc...).
I am trying to get the query to increment the number when the "LastDayOfExemptPayPeriod" date changes.
I tried some window functions with no luck...can someone please help me out?
Thanks!
Michael