这是我获取特定日期订单总额的查询。在这里,使用 AND (tos.status!='5' 或 tos.status!='6') 时我无法得到正确的结果。这有什么问题?
SELECT sum(tot.total) as total
FROM orders_totals tot, orders tos
WHERE DATE(tos.`timestamp`) BETWEEN '2013-12-09' AND '2013-12-09' and
tot.`order` = tos.id and tot.description='Grand-Total' AND
(tos.status!='5' or tos.status!='6')