splint1906
Technical User
I have a table with teamID, SchdID, Win, Loss, Tie as its fields. I'm trying to write a query that can give me each team's current winning or losing streak.
Eaxmple
TeamID SchID Win Loss Tie
1 20 1 0 0
1 30 1 0 0
1 40 1 0 0
2 21 1 0 0
2 31 0 1 0
2 41 0 1 0
I'd like for the query results to show TeamID 1 has a 3 win streak of 3 and TeamID 2 has a losing streak of 2.
Any suggestions as to how I can get this to work?
Eaxmple
TeamID SchID Win Loss Tie
1 20 1 0 0
1 30 1 0 0
1 40 1 0 0
2 21 1 0 0
2 31 0 1 0
2 41 0 1 0
I'd like for the query results to show TeamID 1 has a 3 win streak of 3 and TeamID 2 has a losing streak of 2.
Any suggestions as to how I can get this to work?