..
EXPLAIN PLAN FOR
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

EXPLAIN PLAN FOR
SELECT /*+ rule */LECTNO,
       USERID,
       nvl(round(SUM(DECODE(HIGH_OBJ_SEQ, 0, CNT, 1))/ decode(1, 0, 1, 1)*100), 0) LECT_PROGRESS_AVG
FROM   (SELECT /*+ ordered  */A.LECTNO,
               A.USERID,
               D.HIGH_OBJ_SEQ,
               COUNT(*) CNT
        FROM   MR_LECTURE_MEMBER A,
               MR_LECTURE_COURSE B,
               LCMS_ORGANIZATION C,
               LCMS_COURSE_ITEM D,
               SM4_OBJECTINFO E
        WHERE  A.LECTNO = 53122
        and    A.LMSTATECD = '9'
        AND    B.LECTNO = A.LECTNO
        AND    C.COURSE_SEQ = B.COURSENO
        AND    C.ORG_CD = B.ORG_CD
        AND    D.COURSE_SEQ = C.COURSE_SEQ
        AND    D.ORG_CD = C.ORG_CD
        AND    D.ORG_SEQ = C.ORG_SEQ
        AND    E.OBJ_SEQ = D.OBJ_SEQ
        AND    E.LEARNER_ID = A.USERID
        AND    E.completion_status = 'completed'
        AND    D.ITEM_OPEN = 'true'
        AND    D.HIGH_OBJ_SEQ >= 0
        GROUP BY A.LECTNO, A.USERID, HIGH_OBJ_SEQ) AA
GROUP BY LECTNO, USERID;;

SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);;

'DEV > DB' 카테고리의 다른 글

프로시저에서 다른프로시저 호출  (0) 2010.10.25
clob 검색  (0) 2010.10.05
시퀀스 다른 계정에도 접근권한 주기  (0) 2010.09.11
  Comments,     Trackbacks