select (
select col1
from table1
where col2 = a.col2
) test
where table2 a
오라클에서 위 구문은 먹는데..
select (
select min(col1)
from (
select col1
from table1
where col2 = a.col2
)
) test
where table2 a
이렇게 한 뎁스를 더 들어가면 a 알리아스를 사용할 수가 없는데요..
이걸 간단히 해결할 수 있는 방법은 없을까요?
질문을 제대로 했는지 모르겠네요..
구문이 자꾸 깨져나오네요..