Advertisement

06.05.2008 at 02:40AM PDT, ID: 23459532
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.1

please help me to tune this query, taking lot of time due to group by clause

Asked by Parthap in SQL Query Syntax, Databases Miscellaneous, Oracle Database

Tags: , ,

following query is taking lot of time to execute as 'sa_wrk_item_hst' table contains 1 million rows. Please help me to tune this query. I think due to group by clause it is taking lot of time.

SELECT
SWIH.ROUTED_FROM AS CURR_EPR_QUEUE,
TO_CHAR(TRUNC(SWIH.UPDT_DTE),'MM/YYYY') MTNH_YR,
TRUNC(SWIH.UPDT_DTE) DTE,
COUNT(1) AS CLM_CLS_CNT
FROM
SA_WRK_ITM_HST SWIH,
CP_CLM CC
WHERE
SWIH.WRK_ITM_HST_ID IN
(SELECT wrk_itm_hst_id FROM
                     SA_WRK_ITM_HST
                     WHERE
                            ( form_id,wrk_itm_id,wrk_sta_cde,updt_dte)
                                IN
                                      (SELECT form_id,wrk_itm_id,wrk_sta_cde,MAX(updt_dte)
                                      FROM SA_WRK_ITM_HST
                                    WHERE
                                      sccs_ind <> '0' AND
                                     (queue_typ_Cde='01' OR queue_typ_cde='05') AND
                                      routed_from IS NOT NULL --AND
                                    AND (func_role_cde!=priv_func_role_cde OR wrk_sta_cde='28')
                                      GROUP BY form_id,wrk_itm_id,wrk_sta_cde )
                  
 )
 AND CC.CLM_NO=SWIH.CLM_NO
 AND CC.CLM_STA_CDE='02'
GROUP BY
SWIH.ROUTED_FROM,
TO_CHAR(TRUNC(SWIH.UPDT_DTE),'MM/YYYY'),
TRUNC(SWIH.UPDT_DTE);Start Free Trial
[+][-]06.05.2008 at 02:55AM PDT, ID: 21717633

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 02:59AM PDT, ID: 21717657

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 03:07AM PDT, ID: 21717695

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 05:02AM PDT, ID: 21718310

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 10:42PM PDT, ID: 21726482

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 11:57PM PDT, ID: 21726772

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, Databases Miscellaneous, Oracle Database
Tags: Oracle, 10G, 10.2.0.4.0
Sign Up Now!
Solution Provided By: orcic
Participating Experts: 4
Solution Grade: B
 
 
[+][-]06.15.2008 at 04:09PM PDT, ID: 21790058

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628