Does oracle optimize select statement within a select?
for example simple query
SELECT
test.a as a,
test.b as b,
(SELECT id from inner_table WHERE inner_table.code = 'active')
FROM test
lets say table test has 1000 records, what would Oracle do?
Execute select each time, for each record? Cached it?
Or there is a way to use it ones ?