我写了这个查询,它给了我当天的记录
SELECT EnquiryOwner,Count(uid)
FROM EnquiryMaster
WHERE orgid = '" + orgid + "'
AND (DAY(date) = DAY(GETDATE())
AND MONTH(date) = MONTH(GETDATE())
AND YEAR(date) = YEAR(GETDATE()))
GROUP BY EnquiryOwner
我想选择一周的记录。如果我在星期二访问,我想要从前一个星期二到本星期二的记录