Mastering VBNet Include Source Code

源代码在线查看: ordersandtotalspercustomer.sql

软件大小: 17459 K
上传用户: xiongxianwang8
关键词: Mastering Include Source VBNet
下载地址: 免注册下载 普通下载 VIP

相关代码

				SELECT     Customers.CompanyName, COUNT(Orders.OrderID) AS [Total Orders], 
				           Customers.CustomerID, SUM([Order Details].Quantity * Products.UnitPrice) 
				           AS Total
				FROM       Customers INNER JOIN
				           Orders ON Customers.CustomerID = Orders.CustomerID INNER JOIN
				           [Order Details] ON Orders.OrderID = [Order Details].OrderID INNER JOIN
				           Products ON [Order Details].ProductID = Products.ProductID
				GROUP BY   Customers.CompanyName, Customers.CustomerID
				HAVING     (Customers.CustomerID = @CustomerID)
							

相关资源