hey David,
have you tried to move the where clause syntax between your two tables to the join instead...not sure if it will work or not but perhaps worth a try?
e.g.
(
select max (INNERALIAS."EFFDT")
from "PS_GENL_DEDUCTION" INNERALIAS
INNER JOIN PS_GENL_DEDUCTION
ON INNERALIAS."DEDCD" = "PS_GENL_DEDUCTION"."DEDCD"
and INNERALIAS."EMPLID" = "PS_GENL_DEDUCTION"."EMPLID"
WHERE INNERALIAS."EFFDT" <= SYSDATE
)
also as a test, if you were to
1) take the sql from your report and
2) create a new report off of a comand and
3) then try to add in the sql from your expression (you'll probably have to modify it slightly) as a subquery,
is there an error returned?