摘要:
SQLServer 2005 联机从书:
PIVOT:通过将表达式某一列中的唯一值转换为输出中的多个列来旋转表值表达式,并在必要时对最终输出中所需的任何其余列值执行聚合。
UNPIVOT 与 PIVOT 执行相反的操作,将表值表达式的列转换为列值。
题目:
How can I get a list of the stores that have bought both 'bussiness' and 'mod_cook' type books?
In database pubs, use three table stores,sales and titles to implement this requestment.
... 阅读全文
posted @ 2008-08-28 12:53 fochan 阅读(4778) 评论(3) 推荐(0) 编辑