In the following example, I pass tbA.ID to tbC query. In this case, I used OUTER APPLY operator of SqlServer.
SELECT
...
FROM (SELECT ID FROM TableA ...) tbA
OUTER APPLY (SELECT ... FROM TableB tbB WHERE tbA.ID = tbB.ID) tbC
...
In Oracle, we don't have the OUTER APPLY operator. So, how can I pass a value (tbA.ID) from the left side query to the right side query (tbC) of the join without modifying the structure of my query?
Is there any alternative for OUTER APPLY in Oracle?
outer apply
. Otherwise, you'd have to change the structure of the query at least a bit to remove theouter apply
. In this case, can't you just do aleft outer join
where thetbA.id = tbB.id
is all or part of the join condition? – Muttonhead