I have a table that counts logins to a website with the first column, USER_ID, being the user's unique identifier. The next column is a list of months in the date format %m/%d/%Y, and the next column is a date which indicates whether or not that person logged into the website during that month. What I want to generate is a 4th column that counts NULL values between non-NULL values for that 3rd column.
My question is: given the first 3 columns below, how would I write a query that generates the 4th column?