0
我有一個數據集這樣的 -分組計數
**Team Date W/L**
Team_1 04/01/0012 W
Team_1 06/01/0012 W
Team_1 07/01/0012 L
Team_1 14/01/0012 W
Team_1 19/01/0012 W
Team_1 30/01/0012 L
Team_1 14/02/0012 W
Team_1 17/02/0012 L
Team_1 20/02/0012 W
Team_2 01/01/0012 W
Team_2 05/01/0012 W
Team_2 09/01/0012 W
Team_2 13/01/0012 L
Team_2 18/01/0012 W
Team_2 25/01/0012 L
Team_2 05/02/0012 L
Team_2 13/02/0012 L
Team_2 19/02/0012 L
Team_3 02/01/0012 W
Team_3 02/01/0012 W
Team_3 06/01/0012 W
Team_3 10/01/0012 W
Team_3 19/01/0012 W
Team_3 31/01/0012 L
Team_3 11/02/0012 W
Team_3 15/02/0012 L
Team_3 21/02/0012 W
而從這個我需要找出誰了最大的連續勝 -
隊計數
Team_3 5
Team_2 3
Team_1 2
我被允許只寫sql查詢。我怎麼寫這個?
您正在使用的數據庫? (SQL Server,MySQL,Oracle,...) – Andomar
它是Oracle 11g。 –