I am new to Sql and have a question. I have a table as follows.
I want to write a query that will give me for every Month field go back 6 months and count the number of occurrences of that ID. For eg: something like this.
How can we do this in sql? Probably self-join?