Help for rewrite or tune

Hi,
can u some help to rewrite or tune this quer.
SELECT 20100201 PERIOD_KEY,CONSUMER_KEY,DOW_KEY  PREFDOW,nvl(FIN_SCOR_DOW,-1),'MONTH' GRANULAR FROM
SELECT CONSUMER_KEY,DOW_KEY,FIN_SCOR_DOW,
ROW_NUMBER() OVER ( PARTITION BY CONSUMER_KEY ORDER BY FIN_SCOR_DOW DESC,DOW_KEY ) RNO
FROM
SELECT CONSUMER_KEY,DOW_KEY,SUM(SCORE_SERVICE_WEIGHT) FIN_SCOR_DOW FROM
SELECT DOW_KEY,CONSUMER_KEY,SERVICE_KEY,DUR,TRAN,VOLU,TOT_DUR,***_DUR,TOT_TRAN,***_TRAN,TOT_VOL,***_VOL,SCORE_DUR,SCORE_TRAN,SCORE_VOL,
1*NVL(SCORE_DUR,0)+1*NVL(SCORE_TRAN,0)+1*NVL(SCORE_VOL,0) TOT_SCOR ,
CASE
WHEN SERVICE_KEY= 0 THEN
1*SCORE_DUR
WHEN SERVICE_KEY IN ('1','3') THEN
1*SCORE_TRAN
WHEN SERVICE_KEY  = 2 THEN
1*SCORE_VOL
END SCORE_SERVICE_WEIGHT FROM
select DOW_KEY,consumer_key,service_key,sumDUR dur,SUMTRAN tran,sumVOL volu,
tot_dur,***_dur,tot_tran,***_tran,tot_vol,***_vol,
case
when tot_dur > 0 then
***_dur*100/tot_dur
end score_dur,
case
when tot_tran > 0 then
***_tran*100/tot_tran
end score_tran,
case
when tot_vol > 0 then
***_vol*100/tot_vol
end  score_vol
from
SELECT CONSUMER_KEY,SERVICE_KEY,DOW_KEY,SUMDUR,SUMTRAN,SUMVOL,SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_DUR,
SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY) ***_DUR,
--SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) ***_DUR,
SUM(SUMTRAN) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_TRAN,
SUM(SUMTRAN) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMTRAN,DOW_KEY) ***_TRAN,
--SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) ***_DUR,
SUM(SUMVOL) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_VOL,
SUM(SUMVOL) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMVOL,DOW_KEY) ***_VOL
--SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) ***_DUR,
FROM
SELECT CONSUMER_KEY,SERVICE_KEY, to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D')) DOW_KEY,
sum(SUM_OF_DURATION) sumdur,SUM(NO_OF_TRANSACTIONS) sumtran,sum(SUM_OF_VOLUME) sumvol
--ROW_NUMBER () OVER (ORDER BY CONSUMER_KEY) RNO
FROM SERVICE_FACTS_BY_DAY
WHERE DATE_KEY BETWEEN 20100201 AND 20100228
group by CONSUMER_KEY,SERVICE_KEY,to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D'))
ORDER BY CONSUMER_KEY,SERVICE_KEY,to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D'))
GROUP BY CONSUMER_KEY,DOW_KEY
WHERE RNO=1;explain plan
Plan hash value: 3130556327
| Id  | Operation                         | Name                 | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     | Pstart| Pstop |
|   0 | SELECT STATEMENT                  |                      |   571K|    28M|       |   128K  (1)| 00:29:54 |       |       |
|*  1 |  VIEW                             |                      |   571K|    28M|       |   128K  (1)| 00:29:54 |       |       |
|*  2 |   WINDOW SORT PUSHED RANK         |                      |   571K|    59M|   217M|   128K  (1)| 00:29:54 |       |       |
|   3 |    HASH GROUP BY                  |                      |   571K|    59M|   217M|   128K  (1)| 00:29:54 |       |       |
|   4 |     VIEW                          |                      |  1713K|   179M|       | 93314   (1)| 00:21:47 |       |       |
|   5 |      WINDOW SORT                  |                      |  1713K|   127M|   157M| 93314   (1)| 00:21:47 |       |       |
|   6 |       WINDOW SORT                 |                      |  1713K|   127M|   157M| 93314   (1)| 00:21:47 |       |       |
|   7 |        WINDOW SORT                |                      |  1713K|   127M|   157M| 93314   (1)| 00:21:47 |       |       |
|   8 |         VIEW                      |                      |  1713K|   127M|       | 34903   (2)| 00:08:09 |       |       |
|   9 |          SORT GROUP BY            |                      |  1713K|    40M|   340M| 34903   (2)| 00:08:09 |       |       |
|  10 |           PARTITION RANGE ITERATOR|                      |  8090K|   192M|       | 13172   (2)| 00:03:05 |     1 |    25 |
|* 11 |            TABLE ACCESS FULL      | SERVICE_FACTS_BY_DAY |  8090K|   192M|       | 13172   (2)| 00:03:05 |     1 |    25 |
Predicate Information (identified by operation id):
   1 - filter("RNO"=1)
   2 - filter(ROW_NUMBER() OVER ( PARTITION BY "CONSUMER_KEY" ORDER BY SUM(CASE "SERVICE_KEY" WHEN 0 THEN 1*CASE  WHEN
              ("TOT_DUR">0) THEN ("***_DUR"*100/"TOT_DUR") END  WHEN 1 THEN 1*CASE  WHEN ("TOT_TRAN">0) THEN
              ("***_TRAN"*100/"TOT_TRAN") END  WHEN 3 THEN 1*CASE  WHEN ("TOT_TRAN">0) THEN ("***_TRAN"*100/"TOT_TRAN") END  WHEN 2
              THEN 1*CASE  WHEN ("TOT_VOL">0) THEN ("***_VOL"*100/"TOT_VOL") END  END ) DESC ,"DOW_KEY")<=1)
  11 - filter("DATE_KEY"<=20100228 AND "DATE_KEY">=20100201)

The two inner most SQL views could probably be combined into one:
SELECT  CONSUMER_KEY
       ,SERVICE_KEY
       ,TO_NUMBER(TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D')) DOW_KEY
       ,SUM(SUM_OF_DURATION)
          OVER (PARTITION BY CONSUMER_KEY, SERVICE_KEY, TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D') ) TOT_DUR
       ,SUM(SUM_OF_DURATION)
          OVER (PARTITION BY CONSUMER_KEY, SERVICE_KEY, TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D')
             ORDER BY TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D') )                                   STAR_DUR
       ,SUM(NO_OF_TRANSACTIONS)
          OVER (PARTITION BY CONSUMER_KEY, SERVICE_KEY, TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D') ) TOT_TRAN
       ,SUM(NO_OF_TRANSACTIONS)
          OVER (PARTITION BY CONSUMER_KEY, SERVICE_KEY, TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D')
             ORDER BY TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D') )                                   STAR_TRAN
       ,SUM(SUM_OF_VOLUME)
          OVER (PARTITION BY CONSUMER_KEY, SERVICE_KEY, TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D') ) TOT_VOL
       ,SUM(SUM_OF_VOLUME)
          OVER (PARTITION BY CONSUMER_KEY, SERVICE_KEY, TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D')
             ORDER BY TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D') )                                   STAR_VOL
FROM  SERVICE_FACTS_BY_DAY
WHERE DATE_KEY  BETWEEN 20100201 AND 20100228
GROUP BY CONSUMER_KEY
        ,SERVICE_KEY
        ,TO_NUMBER(TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D'))
ORDER BY CONSUMER_KEY
        ,SERVICE_KEY
        ,TO_NUMBER(TO_CHAR(TO_DATE(DATE_KEY,'YYYYMMDD'),'D'))Also, read up on all the linear regression functions:
REGR_ (Linear Regression)in
http://www.morganslibrary.org/reference/analytic_functions.html
this view ;
select DOW_KEY
                            ,CONSUMER_KEY
                            ,SERVICE_KEY
                            ,SUMDUR DUR
                            ,SUMTRAN TRAN
                            ,SUMVOL VOLU
                            ,TOT_DUR
                            ,STAR_DUR
                            ,TOT_TRAN
                            ,STAR_TRAN
                            ,TOT_VOL
                            ,STAR_VOL
                            ,CASE
                                  WHEN TOT_DUR > 0 THEN
                                  STAR_DUR * 100 / TOT_DUR
                                END SCORE_DUR
                            ,CASE
                                WHEN TOT_TRAN > 0 THEN
                                 STAR_TRAN * 100 / TOT_TRAN
                             END SCORE_TRAN
                           ,CASE
                              WHEN TOT_VOL > 0 THEN
                                 STAR_VOL * 100 / TOT_VOL
                            END  SCORE_VOLcould probably be simplified if you make use of analytical functions, but you'll have to be prepared to play around and test and re-test dozens of times, before you get what you want.

Similar Messages

  • Help for rewrite or tune this quer

    Hi,
    can u some help to rewrite or tune this quer.
    SELECT 20100201 PERIOD_KEY,CONSUMER_KEY,DOW_KEY  PREFDOW,nvl(FIN_SCOR_DOW,-1),'MONTH' GRANULAR FROM
    SELECT CONSUMER_KEY,DOW_KEY,FIN_SCOR_DOW,
    ROW_NUMBER() OVER ( PARTITION BY CONSUMER_KEY ORDER BY FIN_SCOR_DOW DESC,DOW_KEY ) RNO
    FROM
    SELECT CONSUMER_KEY,DOW_KEY,SUM(SCORE_SERVICE_WEIGHT) FIN_SCOR_DOW FROM
    SELECT DOW_KEY,CONSUMER_KEY,SERVICE_KEY,DUR,TRAN,VOLU,TOT_DUR,CUM_DUR,TOT_TRAN,CUM_TRAN,TOT_VOL,CUM_VOL,SCORE_DUR,SCORE_TRAN,SCORE_VOL,
    1*NVL(SCORE_DUR,0)+1*NVL(SCORE_TRAN,0)+1*NVL(SCORE_VOL,0) TOT_SCOR ,
    CASE
    WHEN SERVICE_KEY= 0 THEN
    1*SCORE_DUR
    WHEN SERVICE_KEY IN ('1','3') THEN
    1*SCORE_TRAN
    WHEN SERVICE_KEY  = 2 THEN
    1*SCORE_VOL
    END SCORE_SERVICE_WEIGHT FROM
    select DOW_KEY,consumer_key,service_key,sumDUR dur,SUMTRAN tran,sumVOL volu,
    tot_dur,cum_dur,tot_tran,cum_tran,tot_vol,cum_vol,
    case
    when tot_dur > 0 then
    cum_dur*100/tot_dur
    end score_dur,
    case
    when tot_tran > 0 then
    cum_tran*100/tot_tran
    end score_tran,
    case
    when tot_vol > 0 then
    cum_vol*100/tot_vol
    end  score_vol
    from
    SELECT CONSUMER_KEY,SERVICE_KEY,DOW_KEY,SUMDUR,SUMTRAN,SUMVOL,SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_DUR,
    SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY) CUM_DUR,
    --SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) CUM_DUR,
    SUM(SUMTRAN) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_TRAN,
    SUM(SUMTRAN) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMTRAN,DOW_KEY) CUM_TRAN,
    --SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) CUM_DUR,
    SUM(SUMVOL) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_VOL,
    SUM(SUMVOL) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMVOL,DOW_KEY) CUM_VOL
    --SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) CUM_DUR,
    FROM
    SELECT CONSUMER_KEY,SERVICE_KEY, to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D')) DOW_KEY,
    sum(SUM_OF_DURATION) sumdur,SUM(NO_OF_TRANSACTIONS) sumtran,sum(SUM_OF_VOLUME) sumvol
    --ROW_NUMBER () OVER (ORDER BY CONSUMER_KEY) RNO
    FROM SERVICE_FACTS_BY_DAY
    WHERE DATE_KEY BETWEEN 20100201 AND 20100228
    group by CONSUMER_KEY,SERVICE_KEY,to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D'))
    ORDER BY CONSUMER_KEY,SERVICE_KEY,to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D'))
    GROUP BY CONSUMER_KEY,DOW_KEY
    WHERE RNO=1;explain plan
    Plan hash value: 3130556327
    | Id  | Operation                         | Name                 | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                  |                      |   571K|    28M|       |   128K  (1)| 00:29:54 |       |       |
    |*  1 |  VIEW                             |                      |   571K|    28M|       |   128K  (1)| 00:29:54 |       |       |
    |*  2 |   WINDOW SORT PUSHED RANK         |                      |   571K|    59M|   217M|   128K  (1)| 00:29:54 |       |       |
    |   3 |    HASH GROUP BY                  |                      |   571K|    59M|   217M|   128K  (1)| 00:29:54 |       |       |
    |   4 |     VIEW                          |                      |  1713K|   179M|       | 93314   (1)| 00:21:47 |       |       |
    |   5 |      WINDOW SORT                  |                      |  1713K|   127M|   157M| 93314   (1)| 00:21:47 |       |       |
    |   6 |       WINDOW SORT                 |                      |  1713K|   127M|   157M| 93314   (1)| 00:21:47 |       |       |
    |   7 |        WINDOW SORT                |                      |  1713K|   127M|   157M| 93314   (1)| 00:21:47 |       |       |
    |   8 |         VIEW                      |                      |  1713K|   127M|       | 34903   (2)| 00:08:09 |       |       |
    |   9 |          SORT GROUP BY            |                      |  1713K|    40M|   340M| 34903   (2)| 00:08:09 |       |       |
    |  10 |           PARTITION RANGE ITERATOR|                      |  8090K|   192M|       | 13172   (2)| 00:03:05 |     1 |    25 |
    |* 11 |            TABLE ACCESS FULL      | SERVICE_FACTS_BY_DAY |  8090K|   192M|       | 13172   (2)| 00:03:05 |     1 |    25 |
    Predicate Information (identified by operation id):
       1 - filter("RNO"=1)
       2 - filter(ROW_NUMBER() OVER ( PARTITION BY "CONSUMER_KEY" ORDER BY SUM(CASE "SERVICE_KEY" WHEN 0 THEN 1*CASE  WHEN
                  ("TOT_DUR">0) THEN ("CUM_DUR"*100/"TOT_DUR") END  WHEN 1 THEN 1*CASE  WHEN ("TOT_TRAN">0) THEN
                  ("CUM_TRAN"*100/"TOT_TRAN") END  WHEN 3 THEN 1*CASE  WHEN ("TOT_TRAN">0) THEN ("CUM_TRAN"*100/"TOT_TRAN") END  WHEN 2
                  THEN 1*CASE  WHEN ("TOT_VOL">0) THEN ("CUM_VOL"*100/"TOT_VOL") END  END ) DESC ,"DOW_KEY")<=1)
      11 - filter("DATE_KEY"<=20100228 AND "DATE_KEY">=20100201)

    You are posting your request to the Enterprise Manager Grid Control forum.
    So I assume that you are using OEM Grig Control.
    You could then start using the SQL Tuning Advisor to provide you with an alternative query, execution plan etc.
    If you are not using OEM Grid Control, I suggest that you post your request to a Database forum.
    Regards
    Rob

  • Help for Rewrite/tune the quey

    Hi,
    Could you please help to rewrite or tune the below query.
    database
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bitQuery
    SELECT *
    FROM
      (SELECT q.*,
        ROWNUM          AS rowindex,
        COUNT(*) OVER() AS record_count
      FROM
        (SELECT get_cand_session_number(ccr.split_session_year,ccr.split_session_month,ccr.candidate) AS candidate_session_number,
          ca.candidate,
          ca.lastname,
          ca.firstname,
          (SELECT csl.status_type
          FROM ibis.cw_status_lookup csl
          WHERE csl.status_id = ccp.status_id
          ) AS status,
          ccp.candidate_portfolio_id
        FROM ibis.candidate_component_reg ccr
        INNER JOIN
          (SELECT self_taught,
            YEAR,
            MONTH,
            main_school,
            candidate,
            subject,
            subject_option,
            lvl,
            language,
            withdrawn,
            programme
          FROM ibis.candidate_subject_registration
          ) csr
        ON csr.year           = :v_year
        AND csr.month         =:v_month
        AND csr.main_school   =ccr.main_school
        AND csr.candidate     =ccr.candidate
        AND csr.subject       =ccr.subject
        AND csr.subject_option=ccr.subject_option
        AND csr.lvl           = ccr.lvl
        AND csr.language      =ccr.language
        AND csr.withdrawn     ='N'
        INNER JOIN
          (SELECT YEAR,
            MONTH,
            candidate,
            programme,
            exam_seq_num
          FROM ibis.candidate_session_detail
          ) csd
        ON csd.year          = :v_year
        AND csd.month        = :v_month
        AND csd.candidate    = csr.candidate
        AND csd.programme    = ccr.programme
        AND csd.exam_seq_num = NVL(NULL,csd.exam_seq_num)
        INNER JOIN
          (SELECT candidate,lastname,firstname FROM ibis.candidate
          ) ca
        ON ca.candidate=csd.candidate
        INNER JOIN
          (SELECT status_id,
            candidate_portfolio_id,
            YEAR,
            MONTH,
            paper_code,
            candidate
          FROM ibis.cw_candidate_portfolio
          ) ccp
        ON ccp.year                  = :v_year
        AND ccp.month                = :v_month
        AND ccp.paper_code           = ccr.paper_code
        AND ccp.candidate            = ccr.candidate
        WHERE ccr.split_session_year = :v_year
        AND ccr.split_session_month  = :v_month
        AND ccr.component            = :v_component
        AND ccr.withdrawn            ='N'
        AND ccr.assessment_school    =NVL(:v_school_code,ccr.assessment_school)
        AND ccr.subject              = NVL(:v_subject,ccr.subject)
        AND ccr.subject_option       = NVL(:v_subject_option,ccr.subject_option)
        AND ccr.lvl                  = NVL(:v_lvl,ccr.lvl)
        AND ccr.language             = NVL(:v_language,ccr.language)
        AND ((csr.self_taught        ='N'
        AND ccr.sampled              ='Y'
        AND ccr.deleted_from_sample  ='N'
        AND EXISTS
          (SELECT 1
          FROM ibis.subject_component sc
          WHERE sc.year               = ccr.split_session_year
          AND sc.month                = ccr.split_session_month
          AND ccr.paper_code          =sc.paper_code
          AND sc.subject              = ccr.subject
          AND sc.subject_option       =ccr.subject_option
          AND sc.lvl                  = ccr.lvl
          AND sc.language             =ccr.language
          AND sc.component            =ccr.component
          AND sc.assessment_method_id = 11
          AND sc.assessment_type      = 'INTERNAL'
        AND NOT EXISTS
          (SELECT 1
          FROM ibis.cw_portfolio_template cpt
          WHERE ccr.split_session_year = cpt.year
          AND ccr.split_session_month  = cpt.month
          AND ccr.subject              = cpt.subject
          AND ccr.subject_option       = cpt.subject_option
          AND ccr.component            = cpt.component
          AND cpt.combined             = 'Y'
        OR (csr.self_taught='Y'
        AND EXISTS
          (SELECT 1
          FROM ibis.subject_component sc
          WHERE sc.year               = ccr.split_session_year
          AND sc.month                = ccr.split_session_month
          AND ccr.paper_code          =sc.paper_code
          AND sc.subject              = ccr.subject
          AND sc.subject_option       =ccr.subject_option
          AND sc.lvl                  = ccr.lvl
          AND sc.language             =ccr.language
          AND sc.component            =ccr.component
          AND sc.assessment_method_id = 11
          AND sc.assessment_type      = 'INTERNAL'
        AND NOT EXISTS
          (SELECT 1
          FROM ibis.cw_portfolio_template cpt
          WHERE ccr.split_session_year = cpt.year
          AND ccr.split_session_month  = cpt.month
          AND ccr.subject              = cpt.subject
          AND ccr.subject_option       = cpt.subject_option
          AND ccr.component            = cpt.component
          AND cpt.combined             = 'Y'
        OR (EXISTS
          (SELECT 1
          FROM ibis.cw_portfolio_template cpt
          WHERE ccr.split_session_year = cpt.year
          AND ccr.split_session_month  = cpt.month
          AND ccr.subject              = cpt.subject
          AND ccr.subject_option       = cpt.subject_option
          AND ccr.component            = cpt.component
          AND cpt.combined             = 'Y'
        AND EXISTS
          (SELECT 1
          FROM ibis.subject_component sc
          WHERE sc.year               = ccr.split_session_year
          AND sc.month                = ccr.split_session_month
          AND ccr.paper_code          =sc.paper_code
          AND sc.subject              = ccr.subject
          AND sc.subject_option       =ccr.subject_option
          AND sc.lvl                  = ccr.lvl
          AND sc.language             =ccr.language
          AND sc.component            =ccr.component
          AND sc.assessment_method_id = 11
        UNION
        SELECT get_cand_session_number(ssm.year,ssm.month,ccr.candidate) AS candidate_session_number,
          ca.candidate,
          ca.lastname,
          ca.firstname,
          (SELECT csl.status_type
          FROM ibis.cw_status_lookup csl
          WHERE csl.status_id = ccp.status_id
          ) AS status,
          ccp.candidate_portfolio_id
        FROM ibis.school_sample_mark_additional ssm,
          ibis.candidate_component_reg ccr,
          ibis.candidate ca,
          ibis.candidate_session_detail csd,
          ibis.cw_candidate_portfolio ccp
        WHERE ssm.year              = :v_year
        AND ssm.month               = :v_month
        AND ssm.candidate          IS NOT NULL
        AND ssm.year                = ccr.split_session_year
        AND ssm.month               =ccr.split_session_month
        AND ccr.assessment_school   =ssm.school_code
        AND ssm.candidate           =ccr.candidate
        AND ssm.paper_code          = ccr.paper_code
        AND ccr.component           = :v_component
        AND ccr.split_session_year  = csd.year
        AND ccr.split_session_month = csd.month
        AND ccr.candidate           =csd.candidate
        AND ccr.programme           = csd.programme
        AND csd.candidate           =ca.candidate
        AND ccr.split_session_year  = ccp.year
        AND ccr.split_session_month = ccp.month
        AND ccr.paper_code          =ccp.paper_code
        AND ccr.candidate           = ccp.candidate
        AND ssm.school_code         = NVL(:v_school_code,ssm.school_code)
        AND ccr.subject             = NVL(:v_subject,ccr.subject)
        AND ccr.subject_option      = NVL(:v_subject_option,ccr.subject_option)
        AND ccr.lvl                 = NVL(:v_lvl,ccr.lvl)
        AND ccr.language            = NVL(:v_language,ccr.language)
        AND csd.exam_seq_num        = NVL(:v_candidate,csd.exam_seq_num)
        )q
      ) sq
    WHERE ROWINDEX >=:v_startrow
    AND ROWINDEX   <= (:v_startrow + (:v_maxrows - 1) );explain plan
    | Id  | Operation                                  | Name                           | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                               
    |   0 | SELECT STATEMENT                           |                                |     4 |  8708 |   363   (1)| 00:00:06 |                                                                                                                                                                               
    |*  1 |  FILTER                                    |                                |       |       |            |          |                                                                                                                                                                               
    |*  2 |   VIEW                                     |                                |     4 |  8708 |   363   (1)| 00:00:06 |                                                                                                                                                                               
    |   3 |    WINDOW BUFFER                           |                                |     4 |  8604 |   363   (1)| 00:00:06 |                                                                                                                                                                               
    |   4 |     COUNT                                  |                                |       |       |            |          |                                                                                                                                                                               
    |   5 |      VIEW                                  |                                |     4 |  8604 |   363   (1)| 00:00:06 |                                                                                                                                                                               
    |   6 |       SORT UNIQUE                          |                                |     4 |  1016 |   363  (14)| 00:00:06 |                                                                                                                                                                               
    |   7 |        UNION-ALL                           |                                |       |       |            |          |                                                                                                                                                                               
    |   8 |         CONCATENATION                      |                                |       |       |            |          |                                                                                                                                                                               
    |*  9 |          FILTER                            |                                |       |       |            |          |                                                                                                                                                                               
    |* 10 |           FILTER                           |                                |       |       |            |          |                                                                                                                                                                               
    |  11 |            TABLE ACCESS BY INDEX ROWID     | CW_CANDIDATE_PORTFOLIO         |     1 |    44 |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |  12 |             NESTED LOOPS                   |                                |     1 |   270 |   299   (1)| 00:00:05 |                                                                                                                                                                               
    |  13 |              NESTED LOOPS                  |                                |     1 |   226 |   296   (1)| 00:00:05 |                                                                                                                                                                               
    |  14 |               NESTED LOOPS                 |                                |     1 |   200 |   294   (1)| 00:00:05 |                                                                                                                                                                               
    |  15 |                NESTED LOOPS                |                                |    35 |  3080 |   190   (1)| 00:00:03 |                                                                                                                                                                               
    |  16 |                 TABLE ACCESS BY INDEX ROWID| CANDIDATE_SESSION_DETAIL       |    35 |   980 |    92   (2)| 00:00:02 |                                                                                                                                                                               
    |* 17 |                  INDEX RANGE SCAN          | SESSION_SCHL_CAND              |    35 |       |    77   (2)| 00:00:02 |                                                                                                                                                                               
    |* 18 |                 TABLE ACCESS BY INDEX ROWID| CANDIDATE_SUBJECT_REGISTRATION |     1 |    60 |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 19 |                  INDEX RANGE SCAN          | Y_M_CAND_SUBJ_LVL_OPTION       |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 20 |                TABLE ACCESS BY INDEX ROWID | CANDIDATE_COMPONENT_REG        |     1 |   112 |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 21 |                 INDEX RANGE SCAN           | SPLIT_SESSION_CANDIDATE        |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |  22 |               TABLE ACCESS BY INDEX ROWID  | CANDIDATE                      |     1 |    26 |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 23 |                INDEX UNIQUE SCAN           | CANDIDATE_PK                   |     1 |       |     1   (0)| 00:00:01 |                                                                                                                                                                               
    |* 24 |              INDEX RANGE SCAN              | CANDIDATE_PORTFOLIO_INDEX1     |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 25 |           TABLE ACCESS BY INDEX ROWID      | CW_PORTFOLIO_TEMPLATE          |     1 |    46 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 26 |            INDEX RANGE SCAN                | YEAR_MON_PORTFOLIO_TEMPLATE    |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 27 |            TABLE ACCESS BY INDEX ROWID     | SUBJECT_COMPONENT              |     1 |    96 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 28 |             INDEX RANGE SCAN               | SUBJECT_COMPONENT_PK           |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 29 |             TABLE ACCESS BY INDEX ROWID    | CW_PORTFOLIO_TEMPLATE          |     1 |    46 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 30 |              INDEX RANGE SCAN              | YEAR_MON_PORTFOLIO_TEMPLATE    |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 31 |              TABLE ACCESS BY INDEX ROWID   | SUBJECT_COMPONENT              |     1 |    96 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 32 |               INDEX RANGE SCAN             | SUBJECT_COMPONENT_PK           |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 33 |               TABLE ACCESS BY INDEX ROWID  | CW_PORTFOLIO_TEMPLATE          |     1 |    46 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 34 |                INDEX RANGE SCAN            | YEAR_MON_PORTFOLIO_TEMPLATE    |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 35 |                TABLE ACCESS BY INDEX ROWID | SUBJECT_COMPONENT              |     1 |    87 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 36 |                 INDEX RANGE SCAN           | SUBJECT_COMPONENT_PK           |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 37 |          FILTER                            |                                |       |       |            |          |                                                                                                                                                                               
    |* 38 |           FILTER                           |                                |       |       |            |          |                                                                                                                                                                               
    |  39 |            NESTED LOOPS                    |                                |     1 |   270 |    16   (0)| 00:00:01 |                                                                                                                                                                               
    |  40 |             NESTED LOOPS                   |                                |     1 |   244 |    14   (0)| 00:00:01 |                                                                                                                                                                               
    |  41 |              NESTED LOOPS                  |                                |     1 |   216 |    12   (0)| 00:00:01 |                                                                                                                                                                               
    |  42 |               NESTED LOOPS                 |                                |     1 |   156 |     9   (0)| 00:00:01 |                                                                                                                                                                               
    |* 43 |                TABLE ACCESS BY INDEX ROWID | CANDIDATE_COMPONENT_REG        |     1 |   112 |     6   (0)| 00:00:01 |                                                                                                                                                                               
    |* 44 |                 INDEX RANGE SCAN           | ASSESSMENT_SPLIT_SESSION       |     1 |       |     5   (0)| 00:00:01 |                                                                                                                                                                               
    |  45 |                TABLE ACCESS BY INDEX ROWID | CW_CANDIDATE_PORTFOLIO         |     1 |    44 |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 46 |                 INDEX RANGE SCAN           | CANDIDATE_PORTFOLIO_INDEX1     |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 47 |               TABLE ACCESS BY INDEX ROWID  | CANDIDATE_SUBJECT_REGISTRATION |     1 |    60 |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 48 |                INDEX RANGE SCAN            | CAND_REG_SCHOOL                |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 49 |              TABLE ACCESS BY INDEX ROWID   | CANDIDATE_SESSION_DETAIL       |     1 |    28 |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 50 |               INDEX UNIQUE SCAN            | CANDIDATE_DETAIL_PK            |     1 |       |     1   (0)| 00:00:01 |                                                                                                                                                                               
    |  51 |             TABLE ACCESS BY INDEX ROWID    | CANDIDATE                      |     1 |    26 |     2   (0)| 00:00:01 |                                                                                                                                                                               
    |* 52 |              INDEX UNIQUE SCAN             | CANDIDATE_PK                   |     1 |       |     1   (0)| 00:00:01 |                                                                                                                                                                               
    |* 53 |           TABLE ACCESS BY INDEX ROWID      | CW_PORTFOLIO_TEMPLATE          |     1 |    46 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 54 |            INDEX RANGE SCAN                | YEAR_MON_PORTFOLIO_TEMPLATE    |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 55 |            TABLE ACCESS BY INDEX ROWID     | SUBJECT_COMPONENT              |     1 |    96 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 56 |             INDEX RANGE SCAN               | SUBJECT_COMPONENT_PK           |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 57 |             TABLE ACCESS BY INDEX ROWID    | CW_PORTFOLIO_TEMPLATE          |     1 |    46 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 58 |              INDEX RANGE SCAN              | YEAR_MON_PORTFOLIO_TEMPLATE    |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 59 |              TABLE ACCESS BY INDEX ROWID   | SUBJECT_COMPONENT              |     1 |    96 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 60 |               INDEX RANGE SCAN             | SUBJECT_COMPONENT_PK           |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 61 |               TABLE ACCESS BY INDEX ROWID  | CW_PORTFOLIO_TEMPLATE          |     1 |    46 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 62 |                INDEX RANGE SCAN            | YEAR_MON_PORTFOLIO_TEMPLATE    |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |* 63 |                TABLE ACCESS BY INDEX ROWID | SUBJECT_COMPONENT              |     1 |    87 |     4   (0)| 00:00:01 |                                                                                                                                                                               
    |* 64 |                 INDEX RANGE SCAN           | SUBJECT_COMPONENT_PK           |     1 |       |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |  65 |         CONCATENATION                      |                                |       |       |            |          |                                                                                                                                                                               
    |* 66 |          FILTER                            |                                |       |       |            |          |                                                                                                                                                                               
    |  67 |           TABLE ACCESS BY INDEX ROWID      | CW_CANDIDATE_PORTFOLIO         |     1 |    44 |     3   (0)| 00:00:01 |                                                                                                                                                                               
    |  68 |            NESTED LOOPS                    |                                |     1 |   238 |    23   (0)| 00:00:01 |                                                                                                                                                                               
    |  69 |             NESTED LOOPS                   |                                |     1 |   194 |    20   (0)| 00:00:01 |                                                                                                                                                                               
    |  70 |              NESTED LOOPS                  |                                |     1 |   168 |    18   (0)| 00:00:01 |Edited by: user575115 on

    Hi
    i have seen your query and i am nt changing the whole query but i'll recommend some of the changes it may helps in the performance tuning...
    1) write all the filter conditions in the FROM clause in correspondence to the tables for ex :
    One way : select * from tab a, tab1 b where a.c = b.c and a.d in ('xx','lll')
    Tuned way : select * from (select c from tab where d in ('xx','lll')) a, tab b where a.c = b.c (it provides lesser rows for joining)
    2) Donot write Inline query in the select statement.You can try it.
    for ex:
    One way : select a.c, (select d from tab1 where tab1.d = a.e) from tab a
    tuned way : select a.c, tab1.d from tab a, tab1 where tab1.d = a.e
    3) Check the gathering of stats in 10G
    4) Avoid using ANSI standered for JOINS for ex : Instead of select * from a inner join a on ... use select * from a, b where joining cond.(I am not confirmed)
    5) If possible here use the WITH clause becuase you have use UNION and you have use some common tables which are executing twice in the current.
    6) Use some HINTS like FIRST_ROWS
    If somewhere i am wrong please correct me.
    Edited by: user9292111 on 22-Mar-2012 01:52
    Edited by: user9292111 on 22-Mar-2012 01:53

  • Need help for SQL Queries Tunning

    hi all,
    we have a procedure for search consumers, which using sql queries like:
    SELECT TRIM (NAME) AS NAME, TRIM (accno) AS accno,
    TRIM (connaddress) AS connaddress,
    TRIM (CATEGORY) AS CATEGORY, TRIM (landmark) AS landmark,
    SUBSTR (accno, 1, 3) AS subdivisionname
    FROM consumermaster
    WHERE LOWER (accno) LIKE
    LOWER ('%' || NVL (caccno, '#noval#') || '%')
    OR LOWER (NAME) LIKE LOWER ('%' || NVL (cname, '#noval#') || '%')
    OR LOWER (connaddress) LIKE
    LOWER ('%' || NVL (cadd, '#noval#') || '%')
    OR phone LIKE '%' || NVL (cphone, '#noval#') || '%'
    OR accno = (SELECT accno
    FROM requestregistration
    WHERE requestid = creqid)
    UNION
    SELECT TRIM (NAME) AS NAME, TRIM (accno) AS accno,
    TRIM (connaddress) AS connaddress, TRIM (CATEGORY)
    AS CATEGORY,
    TRIM (landmark) AS landmark,
    SUBSTR (accno, 1, 3) AS subdivisionname
    FROM scodetails
    WHERE LOWER (accno) LIKE
    LOWER ('%' || NVL (caccno, '#noval#') || '%')
    OR LOWER (NAME) LIKE LOWER ('%' || NVL (cname, '#noval#') || '%')
    OR LOWER (connaddress) LIKE
    LOWER ('%' || NVL (cadd, '#noval#') || '%')
    OR phone LIKE '%' || NVL (cphone, '#noval#') || '%'
    OR accno = (SELECT accno
    FROM requestregistration
    WHERE requestid = creqid);
    it's ok for small tables but now data increase .......
    searching method is very slow
    now i want to tune this query for better performance
    please sugg me best method
    Thanks in advance
    Regards
    vij..

    The link given by Asif should get you on the right track for tuning this query.
    I just formatted your SQL:
    SELECT Trim(NAME)        AS NAME,
           Trim(accno)       AS accno,
           Trim(connaddress) AS connaddress,
           Trim(category)    AS category,
           Trim(landmark)    AS landmark,
           Substr(accno,1,3) AS subdivisionname
    FROM   consumermaster
    WHERE  Lower(accno) LIKE Lower('%'
                                   ||Nvl(caccno,'#noval#')
                                   ||'%')
            OR Lower(NAME) LIKE Lower('%'
                                      ||Nvl(cname,'#noval#')
                                      ||'%')
            OR Lower(connaddress) LIKE Lower('%'
                                             ||Nvl(cadd,'#noval#')
                                             ||'%')
            OR phone LIKE '%'
                          ||Nvl(cphone,'#noval#')
                          ||'%'
            OR accno = (SELECT accno
                        FROM   requestregistration
                        WHERE  requestid = creqid)
    UNION
    SELECT Trim(NAME)        AS NAME,
           Trim(accno)       AS accno,
           Trim(connaddress) AS connaddress,
           Trim(category)    AS category,
           Trim(landmark)    AS landmark,
           Substr(accno,1,3) AS subdivisionname
    FROM   scodetails
    WHERE  Lower(accno) LIKE Lower('%'
                                   ||Nvl(caccno,'#noval#')
                                   ||'%')
            OR Lower(NAME) LIKE Lower('%'
                                      ||Nvl(cname,'#noval#')
                                      ||'%')
            OR Lower(connaddress) LIKE Lower('%'
                                             ||Nvl(cadd,'#noval#')
                                             ||'%')
            OR phone LIKE '%'
                          ||Nvl(cphone,'#noval#')
                          ||'%'
            OR accno = (SELECT accno
                        FROM   requestregistration
                        WHERE  requestid = creqid); You are using some function on almost each and every column in the where clause. Try getting rid of them as they are hindering the use of indexes, if any, on any of the columns.
    Also the guidelines in the link provided are the best starting point.

  • HT2731 hi i need help for my  i tuns

    i cant buy from my id

    By 'cant buy from my id' you mean ... ? Does the 'buy' button not work when you try to buy something ? Are you getting an error messages ?
    If you are getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (we are fellow users here on these forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem ... ?

  • Regex help for URL rewriting

    I have the following regular expression for rewriting a URL (from existing code which I had to make some quick changes)
    String     regex = "s#(href|src|url|action|background)=(\"?)(/|" + "http:originalserver.com" +"/|http.?://" + "originalserver.com"+ ")([^\">]*?)(\"?)#$1=$2" + "myserver.com" + "/$4$5#gis";
    which does a URL rewrite and changes the URL from something like
    src="http://originalserver.com/images/someimage.gif" to
    src="http://myserver.com/proxy/images/someimage.gif"
    Now I want to change this regex to add some parameters to the URL. ie.
    case 1:
    href="http://www.originalserver.com/index.htm"
    to
    href="http://www.originalserver.com/index.htm?myParam1=myValue1
    case 2:
    href="http://www.originalserver.com/index.htm?originalP1=originalV1"
    to
    href="http://www.originalserver.com/index.htm?originalP1=originalV1&myParam1=myValue1"
    How can I change the regex to do this. As I have to do this fast and not an expert in Regex, any help would be appreciated.

    Hi,
    try this :
    - first set delimiter (? or &) to append your parameters :
    char delimiter = '\?';
    String myParams = "myParam1=myValue1";
    Pattern p = Pattern.compile( "\?" );
    Matcher m = p.matcher( url );
    if( m.matches() )
    delimiter = '\&'; // not sure ampersand needs to be "backslashed"
    - then use the modified regex
    String regex = "s#(href|src|url|action|background)=(\"?)(/|" + "http:originalserver.com" +"/|http.?://" + "originalserver.com"+ ")([^\">]*?)(\"?)#$1=$2" + "myserver.com" + "/$4$5" + delimiter + myParams + "#gis";

  • Help for performance tunning

    Hi Gurus,
    I m new to the group and SAP BW as well,so i need ur valuable inputs for a Performance related Project.
    I m going to start  a new project in a wks time so and i m working as a Performance Tuning Consultant on that(Load & Query Performance),but i don't have any idea about this,so i need ur valuable advice on that,plz.
    Can anyone plz suggest me the possible ways of suggestions so that i can tell the client as a gud consultant to start with but these days i m going though BW Performance & Authorization(BW360) which is really helpful for me but apart from that i need ur valuable inputs as well.
    Thanks in Advance.
    regards
    Amit

    hi Amit,
    check this.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/afbad390-0201-0010-daa4-9ef0168d41b6
    also
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/10b589ad-0701-0010-0299-e5c282b7aaad
    regards.

  • Structuring Help for Many Apps and Agile Development

    Hi Guys
    I am starting to evaluate RH9 (with server) and am lookign for seom advice on structuring help.
    We produce a management information system, which comprises 17 apps.
    We have major release versions: e.g. 4.9, 5.0 and then sub builds (e,g. 4.9.0.23)
    Most sub builds contain new features that require documentation. We do agile dev, so we are producing new builds every few weeks. This means we can't just produce documentation for major releases (e.g. v4 and v5). This is waht we do right now, but it means it's always out of date
    My initial project is to setup the master pages and css and import the Word manuals into RH and do any necessary cleanup. We will initially publish web help and "printed" (PDF) documentation from this, but eventually want to link into our applications (initially on the help menu and them adding context sensitive help).
    So if a user is running 5.0.0.23 of Inventory Management and goes to the help menu, I want them to be able to get to the documentation for that specific build.
    So, from a documentation point of view, how do I manage all of this?
    Do I put it all under one project or one project per app or per major version or build? My main concern is that we can literraly have 100's of different builds in use by customers, so if we change the documentation for feature X, all users on relevent builds get the updated documentation.
    We are keen to get user feedback and improve areas that require improvement, so let's say a user says the documentation for setting up warehouse locations is not very good. This feature has been around since version 1.0, so we want to update it's documentation and have it available to all current versions (4.x and 5.x). Is there a way to setup the documentation such that I can flag parts of it to specific versions. Using the above example, I want users on all versions and all builds to get the updated version; however, if we change the way locations are managed in 5.0.0.23, how do I ensure that everyone on 5.0.0.22 and below gets version A and everyone on 5.0.0.23 and above gets version B? Clearly, I don't want an entire project for each build (e.g. 5.0.0.23); otherwise, I'd have to make the smae update dozens of times if it's documentation on an existing feature .
    One other thing to consider: related topics can be in other apps. For example in App 1, a related topic might be something in App 2.
    Any pointers greatfully appreciated
    Regards
    Mark

    What you describe is similar to what we are doing currently, with a few notable exceptions. Two of us maintain a large number of online user's guides that are published both as Webhelp (25 projects merged into one parent help system) and as standalone .docx and .pdf files. We are also using Agile. Our company offers two or three major releases per year (2011.1, 2011.2, 2011.3) with one or two patch releases for each major release (2011.1.1, 2011.1.2, etc).
    Our customers also use different versions--some are still on last year's release (possibly earlier), while others install the latest version as soon as it's available.
    A few things you may want to consider:
    1. We've had limited success importing Word documents directly into Robohelp--the HTML invariably gets screwed up with a bunch of extra codes from Microsoft. We've found we have better control over the help files if we simply copy the Word text to Notepad and then copy and paste the stripped-down text to Robohelp, where we create topics, apply styles, insert hyperlink, and import images. This method of converting text from Word to RH takes longer initially, but seems to work better in the longer term, especially if the original document had nested lists or complex tables. FWIW, doing the conversion is relatively mindless work--the kind of task that is great to do at the end of a long week when your mind is numb from writing.
    2. The start pages for each of our 25 projects are linked to their corresponding modules in the software (users can click the Help icon or press F1 to see the online help for the module or to access the entire help system). However, we do not offer true context-sensitive help.
    3. We use the same source control system that is used by our software developers and check our Robohelp files into the same mainline code branch--this means that up-to-date documentation accompanies each release from mainline. Typically, we do not update the help files in our patch branches, since this would mean duplicate work (after updating the help in the patch branch, we'd have to make the same updates to the mainline branch). Instead, we use release notes to document any user interface or functional changes in patch releases. That said, the majority of our patch branches are for bug fixes, not enhancements, so they require only limited changes to the help.
    4. Our entire help system is automatically generated during our nightly software build using the RHCL batch command. When customers install a new release of our software, the latest help files are automatically written to their computers.
    5. After major releases only, we generate a revised Word/PDF file for each project and post those files on our customer support portal. Other than that, we make no attempt to provide improved documentation to customers who are using downlevel software. That is, if we need to rewrite the basic instructions for some task, we update the mainline branch for use with the next software release and all subsequent releases. I guess we figure that if our customers are interested in the latest and greatest instructions, they should spring for the cost of a software upgrade.

  • Problems reinstalling.. Thank you for installing i tunes , not installing

    Hi
    I recently unistalled i tunes and quick time as my CD burner was not functioning. I have tried to reinstall I tunes & when I try to hit the download now button it brings me straight to a page saying 'Thank you for installing I Tunes' without it being installed .
    Any help would be much appreciated.

    Hi AlD23 , and thanks for getting back to me!
    I appreciate the info, I have a few steps I'd recommend:
    First, remove the ink cartridges from the printer, and perform a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    I'd then recommend updating the printers firmware:
    Getting Printer Updates for HP Officejet Pro 8600
    Please keep me posted!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • NEED HELP SETTING UP I TUNES ACCOUNT

    HELP SETTING UP I TUNES ACCOUNT

    Hello cassiefromharrisburg,
    Thanks for using Apple Support Communities.
    See the article below on how to set up an Apple ID to use with iTunes.
    iTunes: How to set up an Apple ID within iTunes
    http://support.apple.com/kb/ht2731
    Take care,
    Alex H.

  • Creating search help for a field in AdHoc Query

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

  • Need to restrict values in F4 help for Batch Characteristic

    Hi,
    I need to restrict values in F4 Help for a batch characteristic based on values entered for another characteristic. I could not find any BADI or Exit for this purpose. There is a BADI CACL_VALUE which is triggered after an entry is selected from dropdown list but nothing when we press F4. I thought of using Object Dependency but I need to write a programming logic for the requirement. Please let me know if there is any way to write program in Object Dependency or any other way for this requirement.
    Regards,
    Nikhil

    Hi nikhil simha,
    first of all, find out which search help is called.
    [Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]
    may help you.
    If you know the search help, you may enhance it, but first of all you should check the where-used-list and make sure that the search help shows the requested behavior only in the context where you want it to.
    If it is your own program, you may be better off to create your own search help and define the triggering fields as search help interface input fields. Then you can use the values to filter results.
    Regards
    Clemens

  • Search Help for Vendor Feild not getting populated in the Screen Element

    Hi Everyone,
    In transaction Miro, I get a POP-UP for Invoicing Party i.e. Vendor and Users required a custom search help.
    The Search help for Vendor(LIFNR) is KRED_C and i appended a Z search help under this.
    Now that the search help exists and I can drill down the values too but when i select/choose any value,  that value is not getting populated in Screen feild.
    is there any validation I need to do for this.
    Please suggest me... I checked SDN there are many things but i couldn't figure out wat i need to do and where I need to modify.
    Regards,
    Raj

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Search help for SKAT-SAKNR OR SKAT-SAKNR is not working

    Hi All,
    I have created a Search Help for F4 in a dialog program for SKAT-SAKNR OR SKAT-SAKNR. While i click F4 on that field, it displays blank values.
    Here is the module:
    module HELP_FOR_SAPGL_ACC input.
      CLEAR t_SAPGL.
      SELECT  SAKNR TXT20
        FROM  SKAT
        INTO  CORRESPONDING FIELDS OF TABLE t_SAPGL UP TO 1000 ROWS
        WHERE SPRAS = SY-LANGU.
       WHERE L_GL_ACC = v_FIELD_VALUE-FIELDVALUE.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'SAKNR'
        PVALKEY                = ' '
         DYNPPROG               = PROGNAME
         DYNPNR                 = DYNNUM
         DYNPROFIELD            = 'SKA1-SKANR'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = t_SAPGL
        FIELD_TAB              =
        RETURN_TAB             =
        DYNPFLD_MAPPING        =
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endmodule.   
    In the above code I am selecting 1000 rows from SKAT table and in the Search Help Popup it is also displaying 1000 rows but all are blank.
    Please help me.
    Regards,
    Avaneet

    Hi check my weblog on search help exit codeing..
    https://wiki.sdn.sap.com/wiki/x/du0
    \* Prepare for output
    CALL FUNCTION 'F4UT_RESULTS_MAP'
    TABLES
    shlp_tab = shlp_tab
    record_tab = record_tab
    source_tab = lt_result
    CHANGING
    shlp = shlp
    callcontrol = callcontrol
    EXCEPTIONS
    illegal_structure = 1
    OTHERS = 2.
    IF rc = 0.
    callcontrol-step = 'DISP'.
    ELSE.

  • I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    http://www.apple.com/support/itunes/contact/

Maybe you are looking for

  • Sprint says Q10 can not access internet/data in Chas/Hunt WV area

    So I upgraded to a new Q10 and spent a few hours loading and configuing all my emails, etc.  Driving to work this morning, I noted that there was no emails received after I left my house (wifi-enabled).  Tried to open the Browser and received the err

  • Error in starting IDC Content Service

    Hi I am trying to start my IDC service on a XP box. I was using the content server apis to get a file and it worked well. Now after rebooting the system, i get the following error Failed to initialize the server. Unable to instantiate class 'quickhel

  • Duplicate and remove "copy" from name?

    how to remove the "copy" in the name of a duplicate layer? Or better even: avoid having Illustrator add "Copy" to the name

  • Scenario in which Conversation ID will not get generated

    Hi all, I have a requirement wherein i need to capture the conversationID for logging purpose from my BPEL processes. However i have noticed that ora:getConversationId() is giving me NULL sometimes. Could anyone tell me what are the scenarios where c

  • Risk Management & Process controls for non SAP client

    Hi Forum Gurus, I need clarity on the following:  Can Risk managment 3.0 and Process controls be implemented for a non-SAP client? i.e. Our client does not run SAP, but they are interested in RM and PC, so is this possible to implement? Any advice wo