Advertisement

02.22.2008 at 02:03AM PST, ID: 23183948
[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!

Performance tunning of oracle SQL

Tags: Oracle 9i/10g
Could we make it small size SQL???

insert into condition_res_api (success_flg,category1,npa_credit,case_count)
(SELECT 'Y'
            ,'S'
            ,'TACL'
            ,COUNT (1) total_acl_count
FROM   nbfc_customer_m
WHERE  customerid IN (
            SELECT customerid
            FROM   gcd_customer_acl_dtl
            WHERE  customerid IN (
                        SELECT DISTINCT customerid
                        FROM lea_contract_dtl))
                        AND    compid = l_comp_code

UNION  
                               
SELECT       'Y'
            ,'S'
            ,'5ACL'
            ,COUNT (1) acl_count_less5_closure
FROM   nbfc_customer_m
WHERE  customerid IN (
            SELECT customerid
            FROM   gcd_customer_acl_dtl
            WHERE  acl < 500000
            AND customerid IN (
                        SELECT DISTINCT customerid
                        FROM lea_contract_dtl))
                        AND    compid = l_comp_code

UNION

SELECT       'Y'
            ,'S'
            ,'10ACL'
            ,COUNT (1) acl_count_less10
FROM   nbfc_customer_m
WHERE  customerid IN (
            SELECT customerid
            FROM   gcd_customer_acl_dtl
            WHERE  acl BETWEEN 500000 AND 1000000
            AND    customerid IN (
                        SELECT DISTINCT customerid
                        FROM lea_contract_dtl))
                        AND    compid = l_comp_code

UNION

SELECT       'Y'
            ,'S'
            ,'30ACL'
            ,COUNT (1) acl_count_less30
FROM   nbfc_customer_m
WHERE  customerid IN (
                  SELECT customerid
                  FROM   gcd_customer_acl_dtl
                  WHERE  acl BETWEEN 1000000 AND 3000000
                  AND    customerid IN (
                              SELECT DISTINCT customerid
                              FROM            lea_contract_dtl))
                              AND    compid = l_comp_code

UNION

SELECT       'Y'
            ,'S'
            ,'50ACL'
            ,COUNT (1) acl_count_less50
FROM   nbfc_customer_m
WHERE  customerid IN (
                  SELECT customerid
                  FROM   gcd_customer_acl_dtl
                  WHERE  acl BETWEEN 3000000 AND 5000000
                  AND    customerid IN (
                              SELECT DISTINCT customerid
                              FROM lea_contract_dtl))
                              AND    compid = l_comp_code

UNION

SELECT       'Y'
            ,'S'
            ,'80ACL'
            ,COUNT (1) acl_count_less80
FROM   nbfc_customer_m
WHERE  customerid IN (
                  SELECT customerid
                  FROM   gcd_customer_acl_dtl
                  WHERE  acl BETWEEN 5000000 AND 8000000
                  AND    customerid IN (
                              SELECT DISTINCT customerid
                              FROM lea_contract_dtl))
AND    compid = l_comp_code

UNION

SELECT       'Y'
            ,'S'
            ,'80MACL'
            ,COUNT (1) acl_count_more80
FROM   nbfc_customer_m
WHERE  customerid IN (
            SELECT customerid
            FROM   gcd_customer_acl_dtl
            WHERE  acl > 8000000
            AND customerid IN (
                        SELECT DISTINCT customerid
                        FROM lea_contract_dtl))
AND    compid = l_comp_code);
Start your free trial to view this solution
Question Stats
Zone: Database
Question Asked By: SGosukonda
Solution Provided By: sdstuber
Participating Experts: 2
Solution Grade: A
Views: 71
Translate:
Loading Advertisement...
02.22.2008 at 06:12AM PST, ID: 20957392

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 06:29AM PST, ID: 20957554

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 06:43AM PST, ID: 20957703

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.24.2008 at 12:44PM PST, ID: 20971257

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.24.2008 at 10:26PM PST, ID: 20973248

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 06:10AM PST, ID: 20975316

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 09:58PM PST, ID: 20981943

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2008 at 08:34AM PST, ID: 20985898

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628