【发布时间】:2015-02-17 12:16:36
【问题描述】:
我正在尝试使用带有外部连接的 ansi (sql 92) sql 编写以下查询:
select *
from ota_delegate_bookings odb,
ota_events oe, -- aka Class
per_all_assignments_f paaf
where oe.event_id = odb.event_id
and paaf.person_id (+) = odb.delegate_person_id
and paaf.assignment_type (+) in ('E', 'C')
and paaf.primary_flag (+) = 'Y'
and oe.course_start_date between paaf.effective_start_date (+) and paaf.effective_end_date (+)
我得到了可怕的ORA-01417: a table may be outer joined to at most one other table 错误。我想知道较新的 ansi sql 外连接语法是否没有外连接到多个表的限制;但我不知道如何将其编写为 ansi sql。您如何处理多个连接以及一个连接如何使用 between?
【问题讨论】:
标签: sql oracle outer-join