Q&A for people who like playing board games, designing board games or modifying the rules of existing board games
SELECT owneruserid, [Monday], [Tuesday], [Wednesday], [Thursday], [Friday] FROM (SELECT score, owneruserid, Datename(weekday, creationdate) DAY FROM posts WHERE owneruserid IN ( 1, 2, 3, 4, 5 )) p PIVOT ( SUM (score ) FOR DAY IN ( [Monday], [Tuesday], [Wednesday], [Thursday], [Friday]) ) pvt