当我运行此查询时,Oracle 给我一个错误(ORA-00907:缺少右括号):
select *
from reason_for_appointment
where reason_for_appointment_id in
(
select reason_for_appointment_id
from appointment_reason
where appointment_id = 11
order by appointment_reason_id
)
但是,当我只运行子查询时,没有错误。
谁能解释问题是什么?