Bạn đã thử cái gì đó như
chưaSELECT *
FROM (
SELECT ID,
Question,
Answer
FROM @Table1
) t
PIVOT (MAX(Answer) FOR Question IN ([Any Good?],[Happy?],[Good Staff?],[Return?])) p