Advertisement

10.27.2006 at 03:04AM PDT, ID: 22039620
[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.2

How to reduce Querying time

Asked by rk_radhakrishna in Oracle Database

Tags: , ,

Hi,

I am using below query to display reports:

select a.abc, a.title, a.language, a.status, a.stock_level, (nvl(b.hard_copy_orders, 0) + nvl(g.hard_copy_orders, 0)) as hard_copy_orders, nvl((nvl(b.stock_used, 0) - nvl(b.email_orders, 0)) + nvl(g.stock_used, 0), 0) as hard_copy_volume, nvl(b.email_orders, 0) as email_orders, a.max_order_qty, a.document_list_urn, a.fulfillment_details, d.description, e.print_name from test.tbl_phmes a, (select abc, nvl(sum(b.quantity), 0) as stock_used, count(a.customer_email) as email_orders, count(a.customer_address) as hard_copy_orders from test.tbl_orders a, test.tbl_order_phmes b where a.urn=b.order_urn and a.entered_date between '1-Jan-2006' and '27-Oct-2006' group by abc)b, (select c.abc, nvl(sum(b.quantity), 0) as stock_used, count(a.urn) as hard_copy_orders from test.tbl_css_orders a, test.tbl_css_order_phmes b, test.tbl_phmes c where a.urn=b.order_urn and b.abc=c.css_product_code and a.entered_date between '1-Jan-2006' and '27-Oct-2006' group by c.abc)g, test.tbl_product_lines d, test1.desk_tops e where a.abc=b.abc(+) and a.abc=g.abc(+) and a.product_id=d.urn(+) and a.document_owner=e.user_id(+) and A.abc in ('45000') ORDER BY abc DESC

I dont know why its taking lots of time to retrieve values from database.
Of course each table contains more than 100 thousands of rows.
I created indexes for all columns which are in where clause.

Is there any better way to rewrite this query or any other solutions to run faster.

waiting for your reply
Thanks in advance,
Start Free Trial
 
Keywords: How to reduce Querying time
 
Loading Advertisement...
 
[+][-]10.27.2006 at 03:07AM PDT, ID: 17818008

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 03:08AM PDT, ID: 17818012

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 03:09AM PDT, ID: 17818016

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 03:13AM PDT, ID: 17818030

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 03:21AM PDT, ID: 17818053

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 03:23AM PDT, ID: 17818060

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 03:25AM PDT, ID: 17818069

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.27.2006 at 03:32AM PDT, ID: 17818088

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.27.2006 at 06:40AM PDT, ID: 17818961

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.27.2006 at 07:30AM PDT, ID: 17819359

View this solution now by starting your 30-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

Zone: Oracle Database
Tags: how, nvl, reduce
Sign Up Now!
Solution Provided By: markgeer
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.30.2006 at 09:01AM PST, ID: 17835089

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.30.2006 at 10:14AM PST, ID: 17835774

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44