안녕하세요 쿼리 변환 관련 해서 질문 드립니다.
아래와 같은 쿼리를
select (select trade_date
from erp.trade_book_all
where contract_info_no=C.no and
trade_date>'2015-04-01' and
trade_type='O' and
save_status='Y' and
type!='1'
and over_money=0
order by save_time asc fetch first 1 rows only) as out_date ,c.no
from erp.contract_info C
서브쿼리 형식이아닌 조인형식으로 변환하고 싶은데 어떤식으로
변환을 해야하는지 몰라 질문드립니다.
조인형식으로 변환하는 방법좀 알려주세요
|