I have a table where the records have score for each month. I would like to run a query to get the rows where the score is over the value 100 for 3 consecutive months.
I have had a look at the following example which works for consecutive rows above a threshold. However I am struggling to adapt this to columns instead of rows. I think I should be using 'OVER (PARTITION BY)' but I am not sure how.
I have started a sqlfiddle which I hope someone may be able to help me with.
Thank you.