我有查询返回这样的数据
DATE( expensemaster.`date` ) SUM( feesmaster.PAIDAMOUNT ) SUM( expensemaster.amount )
2013-01-09 0 7824.4
2013-01-15 200 211
请查看查询,
SELECT DATE( expensemaster.`date` ) ,
SUM( feesmaster.PAIDAMOUNT ) ,
SUM( expensemaster.amount )
FROM
feesmaster
INNER JOIN expensemaster
ON DATE( feesmaster.DATETIME ) = DATE( expensemaster.date )
WHERE
DATE( expensemaster.`date` ) BETWEEN '2013-01-09' AND '2013-01-15'
AND DATE( feesmaster.`datetime` ) BETWEEN '2013-01-09' AND '2013-01-15'
GROUP BY
DATE( feesmaster.`datetime` ),
DATE( expensemaster.`date` )
如果我将内部替换为完整,那么当其中一个表中有匹配项时我可以获得返回行但我收到错误
#1054 -“字段列表”中的未知列“feesmaster.PAIDAMOUNT”
我正在使用 phpmyadmin。