Hi All,
I have the following data:
Date GroupID Value
1/01/2000 1 44
2/01/2000 1 55
3/01/2000 1 66
4/01/2000 2 77
5/01/2000 2 88
6/01/2000 1 99
7/01/2000 1 22
I am looking for a query capable of selecting the first group of records with a continous GroupID when I order by Date. i.e. in this example I would get:
1/01/2000 1 44
2/01/2000 1 55
3/01/2000 1 66
As the group ID changed in the next row, I wouldn't get any subsequent data.
Help will be greatly appreciated
Thanks
Elie