Total_Num.sql
资源名称:final.rar [点击查看]
上传用户:fangwenmm
上传日期:2014-06-18
资源大小:6955k
文件大小:0k
源码类别:
企业管理
开发平台:
Visual C++
- USE Stock
- GO
- CREATE VIEW dbo.Total_Num
- AS
- SELECT dbo.ProInStore.Pid, SUM(dbo.ProInStore.Pnum) AS Total
- FROM dbo.ProInStore INNER JOIN
- dbo.Product ON dbo.ProInStore.Pid = dbo.Product.Pid
- GROUP BY dbo.ProInStore.Pid
- GO