SELECT Customer_id,
SUM(CASE WHEN Month(Sales_date) = 1 THEN Payment END AS January,
SUM(CASE WHEN Month(Sales_date) = 2 THEN Payment END AS February,
...
FROM tbl
GROUP BY Customer_id
This query runs on "big" SQL Server. I have not worked with SQL Compact Edition, so I don't know if the Month function is there.