첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
SELECT /*+ USE_HASH(B) */
    A.DEPARTMENT_NAME
   ,A.DEPARTMENT_ID
   ,SUM(B.SALES_AMOUNT)
FROM  DEPARTMENT A, SALES B
WHERE A.DEPARTMENT_ID = B.DEPARTMENT_ID
AND   A.BUSINESS_NAME = '가전사업부'
AND   B.SALES_YM      = '202001'
GROUP BY
    A.DEPARTMENT_NAME
   ,A.DEPARTMENT_ID

※ /*+ USE_HASH(테이블명 [테이블명 ...]) */

728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요