You are on page 1of 1

SELECT

LastName, count(stats.PlayerID) GP,


sum(2PTFGM*2+ 3PM*3 +FTM) pts, sum(2PTFGM*2+ 3PM*3 +FTM)/
(count(stats.PlayerID)) ppg,
sum(Ast) assists,sum(Ast)/(count(stats.PlayerID)) apg,
sum(reb) rebounds,sum(reb)/(count(stats.PlayerID)) rpg,
sum(blk) blocks,sum(blk)/(count(stats.PlayerID)) bpg,
sum(stl) steals,sum(stl)/(count(stats.PlayerID)) spg,

sum(2PTFGM*2+ 3PM*3 +FTM) + sum(Ast)*1.5 + sum(reb)*1.2 +


sum(blk)*1.5 + sum(stl)*1.5 statpoints

FROM players, stats


where players.PlayerID = stats.PlayerID
GROUP by players.PlayerID
ORDER BY `statpoints` DESC

You might also like