住日期
From
(selectsum(人数)AsTotal,入住日期from开台wheremonth(入住日期)=month(@date)groupby入住日期)P
whereP.Total=
(selectMax(Total)AsMaxCountfrom
(selectsum(人数)AsTotal,入住日期from开台wheremonth(入住日期)=month(@date)groupby入住日期)AsA)
GO
(2)客流量统计
CREATEPROCEDUREflows(@datedatetime)
AS
selectsum(人数)as月客流量from开台wheremonth(入住日期)=month(@date)andyear(入住日期)=year(@date)
GO
??
??
??
??
基于sqlserver2003数据库的单机版酒店业务管理系统
2
上一篇:
VB_net网吧计费系统软件(论文和程序)
下一篇:
遥远的牵挂