1
我已经在MS Sql Server 2008中创建了数据透视表。如何将生成的数据透视表保存到永久表中?如何将数据透视表保存为永久表
SELECT *
FROM (SELECT yr as [year], lname as [player], avg_rating as Rating
FROM pool_ratings_yr1) as s
PIVOT
(SUM(Rating) FOR [player] in (greenleaf, maturo, allen, caras, concannon, taberski, mosconi, weston, seaback, deoro, blankenship, ralph, keough, kreuter, layton, hueston, rudolph, lauri)) AS pool_pivot
感谢, 威尔
完美!非常感谢。 –