这可能是一个语法问题,但我找不到它:
Select TableA.*
FROM
(SELECT action.*, security.*, rtg_type.*
FROM TableB action
LEFT JOIN TableC security ON action.INSTRUMENT = security.pkey
LEFT JOIN TableD rtg_type ON action.ratingtype = rtg_type.pkey
WHERE ratingdate <= trunc(sysdate) AND ratingdate > trunc(sysdate) -2
) TableA
我收到的错误是
ORA-00918: column ambiguously defined
这就是要在Oracle上运行