select Products.prodname, sum( billdetail.Qty) as qty,BillDetail.rate,
sum(billdetail.amt) as Amt from billdetail
inner join products
on products.prodid = billdetail.prodid
inner join category
on category.catid = products.catid
inner join billmaster
on billmaster.BillID = BillDetail.BillID
where billmaster.billdate between 1/08/2017 and 19/09/2017 and CatName =
'chicken'
group by prodname,rate
我的问题是当我包含日期参数时它停止工作。我怎样才能包括它们?