我想要一个选择结果,我可以在其中获得每天的结果。我计算错误,并有以下非工作声明:
SELECT message, time, personid, count(*)
FROM errorlog
WHERE time BETWEEN TO_DATE(todays date - 10 days) AND TO_DATE(todays date) AND SUBSTR(message,0,3) = 'ERR'
GROUP BY DAY(time), personid, message
ORDER BY 4
当我运行它时,它显示“DAY”:无效标识符。