Backboards: 
Posts: 167
In response to "SQL help needed." by Will Hunting

sure

select team_id, sum(CASE WHEN result = 'win' THEN 1 ELSE 0 END ) as win_total, sum(CASE WHEN result = 'loss' THEN 1 ELSE 0 END ) as loss_total

group by team_id


Post a message   top
Replies are disabled on threads older than 7 days.