3
I am trying to elaborate a query and within one of my joins it is necessary to be made a subselect to ensure the integrity of the query as the example below:
select t01.teste
from teste t01
left join tes_teste_2 t02
on t01.isn_teste = t02.isn_teste
and t02.isn_pessoa = (select min(t04.isn_pessoa) from tes_teste t04
where t04.isn_teste = t01.isn_teste)
where t01.isn_empresa = 666
The problem that returns to me "ORA-01799: a column cannot be externally connected to a sub-consumption"
I would like a help as could elaborate this subselect as a condition. Pointing out that we use Oracle 11G.
Thank you, I’ve solved my problem
– user2992172