ORA-00918:列模糊定义

时间:2016-02-18 22:50:16

标签: sql oracle

这可能是一个语法问题,但我找不到它:

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上运行

0 个答案:

没有答案