0
我需要显示回答yes参加活动的人数。这里是我的SELECT语句至今:sql server存储过程获取参加活动的人数
SELECT TOP (100) PERCENT
dbo.tb_EventAttendance.WillAttend,
dbo.tb_Events.EventName,
dbo.tb_Events.EventDate
FROM dbo.tb_EventAttendance
INNER JOIN dbo.tb_Events ON dbo.tb_EventAttendance.EventID = dbo.tb_Events.dbID
WHERE (dbo.tb_EventAttendance.WillAttend = 'Y')
ORDER BY dbo.tb_Events.EventDate
难道我使用COUNT函数,如果是在究竟这种情况呢?
这是“dbo.tb_EventAttendance.WillAttend”我想要返回的总数。 – James 2011-03-09 02:56:53