前些日子和总版联系, 问是否有《学习excel VBA,xml 和ASP电子书》中的透视表编程的示例数据库, 回答没有。于是, 我通过sql2000, 输入书中的代码,做了一个视图, 这样方便大家学习这部分内容。 create view vwNorhwind as select customers.customerID, customers.companyName, Orders.OrderDate,Products.ProductName,Sum([Order Details].[unitprice]*[quantity]*(1-[discount])) as Total from products inner join ((customers inner join orders on customers.customerID=orders.customerID) inner join [order details] on orders.orderID=[order details].orderID) on products.productID=[Order Details].productID group by customers.customerID, customers.companyName, orders.orderdate,products.productname |