3
select payeeid, EXTRACT(WEEKDAY FROM checkdate) as DOW,
(bankcleared - checkdate) as DateDiff
from Master
where (bankcleared is not null)
order by payeeid, DOW, DateDiff
加入DateDiff
到Where
- 不工作
select payeeid, EXTRACT(WEEKDAY FROM checkdate) as DOW,
(bankcleared - checkdate) as DateDiff
from Master
where (bankcleared is not null) AND (DateDiff >= 1)
order by payeeid, DOW, DateDiff
對不起,我還打算問....爲什麼加入則DateDiff到哪裏導致錯誤 - DateDiff列未知 – IElite 2011-02-18 13:56:15