같은 결과와 같은 조건입니다.
하지만 둘중에 어떤 쿼리가 퍼포먼스 즉 속도나 메모리측면 에서
좋은지 답변점 부탁드려요..
----- 첫번째 -----
select a.*,b.* from data_table a,code_table b
where a.st_name = b.st_name
and a.co_date >= to_date('20040101')
and b.co_code = '10'
----- 두번째 ----
select a.*,b.* from
(select * from data_table where co_date >= to_date('20040101'))
a
(select * from code_table where co_code = '10') b
and a.st_name = b.st_name
고수님들 멋진 쿼리 튜닝점.. 부탁드렵니다.
|