select /+ leading(거래@subq) use_nl(c) /
c.고객번호, c.고객명
from 고객 c
where c.가입일시 >= trunc(add_months(sysdate, -1), 'mm')
and exists(
select /+ qb_name(subq) unnest / 'x'
from 거래
where 고객번호 = c.고객번호
and 거래일시 >= trunc(sysdate, 'mm'))
SELECT EMPNO, ENAME, SAL, HIREDATE
,(SELECT GET_DNAME(E.DEPTNO) FROM DUAL) DNAME
FROM EMP E
WHERE SAL >= 2000