Looking for a query suggestion or SQL where I would pull the first record that contains a certain value and then return all the records after that. I hope this makes sense.
for instance
ID Pass
1 Y
2 F
3 Y
4 Y
5 Y
6 Y
Would return records 2 through 6
or
ID Pass
1 Y
2 Y
3 Y
4 N
5 Y
6 Y
7 N
Would return records 4 through 7
I was thinking a case statement might be a solution but I don't have enough experience to build this.
Thanks for any help you can give.
for instance
ID Pass
1 Y
2 F
3 Y
4 Y
5 Y
6 Y
Would return records 2 through 6
or
ID Pass
1 Y
2 Y
3 Y
4 N
5 Y
6 Y
7 N
Would return records 4 through 7
I was thinking a case statement might be a solution but I don't have enough experience to build this.
Thanks for any help you can give.