SQL Server "Group By" for an interesting case

Posted by stckvrflw on Stack Overflow See other posts from Stack Overflow or by stckvrflw
Published on 2010-04-26T07:59:02Z Indexed on 2010/04/26 8:03 UTC
Read the original article Hit count: 210

Hello,

I have a table like that

1 A_Team 11
2 A_Team 3
3 B_Team 2
4 A_Team 1
5 A_Team 1

What I want is grouping the same named teams which are also sequential teams

So the result table should look like

  1  A_Team 14
  2  B_Team 2
  3  A_Team 2

Thanks

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql-server-2000