SELECT s.eventStartDate, s.salesPersonID, Count(s.salesEventID) AS CountEvent
FROM smd_salesEvent s
WHERE (((s.saleTypeID)=1) AND ((s.storeID)<>0) AND ((s.saleEventStatus)<>"Discontinue"))
GROUP BY s.eventStartDate, s.salesPersonID
HAVING (((s.eventStartDate) Between #7/4/2010# And #7/10/2010#));
|