我有一个 Oracle 命令
Select offers.OFR_STAT,OFFER_DETAILS.*,PrevData.*
From offers
INNER JOIN OFFER_DETAILS
ON OFFER_DETAILS.OFFER_ID=offers.OFFER_ID
INNER JOIN (
SELECT InnerOfrDtl.*
FROM OFFER_DETAILS as InnerOfrDtl
WHERE InnerOfrDtl.offer_id=offers.offer_id
) AS PrevData
ON PrevData.SCHEDULE_TYPE=OFFER_DETAILS.SCHEDULE_TYPE
运行时,我收到一条错误消息“缺少右括号”。在这里,我想使用内部联接的子查询。