I have the following table called [Store_Sales] -
Store Date Sales
1 23/04 10000
2 23/04 11000
1 22/04 10000
2 22/04 10500
1 21/04 10000
2 21/04 10550
I want a SQL that will return a "run" of similar values in the Sales column for a particular store. For example, from the above table it would return store 1 for the 23rd, 22nd and 21st, as they all have the same value (10,000).
I am using SQL Server 2008.