Advertisement

10.02.2008 at 07:33AM PDT, ID: 23781721
[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!

9.0

Query to Find Top N% of Currency Sum

Asked by bdead20 in SQL Query Syntax, Microsoft Access Database

Tags: , , ,

I don't know if this query is even possible.  I've written very complex queries but am not sure how to handle this one.  I have a bunch of line items with costs associated with them, I only care about the highest cost items that contribute N% of the total Sum of the Costs.  I'll provide an example with some made up data.

ID | Item | Cost
1 | Hammer | $25
2 | Wrench | $12
3 | Saw | $30
4 | Screw | $2
5 | Wood | $75
6 | Nails | $4
7 | screwdriver | $8
8 | Drill | $40
9 | DrillBits | $15
10 | Blade | $35

Say I wanted the top 90% of Costs.  Total is $246.  90% is $221.4.  So we would return the following to get the sum greater than $221.4 and then quit returning rows.

5 | Wood |       $75
8 | Drill |       $40
10 | Blade |       $35
3 | Saw |       $30
1 | Hammer |       $25
9 | DrillBits | $15
2 | Wrench |       $12

Say we wanted top 80%.   Total is $246.  80% is $196.8.  It would return.

5 | Wood |       $75
8 | Drill |       $40
10 | Blade |       $35
3 | Saw |       $30
1 | Hammer |       $25

So it needs to cross the percent threshold given and then return no more.  Any ideas?Start Free Trial
 
Loading Advertisement...
 
[+][-]10.02.2008 at 09:28AM PDT, ID: 22625830

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

 
[+][-]10.02.2008 at 09:57AM PDT, ID: 22626129

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

 
[+][-]10.02.2008 at 11:30AM PDT, ID: 22627062

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

 
[+][-]10.02.2008 at 11:43AM PDT, ID: 22627182

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

 
[+][-]10.02.2008 at 12:11PM PDT, ID: 22627445

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

 
[+][-]10.02.2008 at 12:29PM PDT, ID: 22627626

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

 
[+][-]10.02.2008 at 12:29PM PDT, ID: 22627628

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

 
[+][-]10.02.2008 at 12:33PM PDT, ID: 22627652

View this solution now by starting your 14-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, Microsoft Access Database
Tags: Microsoft, Access, 2003, SQL
Sign Up Now!
Solution Provided By: jamesgu
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.02.2008 at 03:08PM PDT, ID: 22629233

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

 
[+][-]10.03.2008 at 05:39AM PDT, ID: 22633199

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

 
[+][-]10.03.2008 at 05:44AM PDT, ID: 22633239

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

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