Let\'s say I have a hypothetical table like so that records when some player in some game scores a point:
name points ------------ bob 10 mike 03 mi
This is called pivoting the table:
SELECT SUM(IF(name = "Bob", points, 0)) AS points_bob, SUM(IF(name = "Mike", points, 0)) AS points_mike FROM score_table