[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

03/24/2008 at 09:59AM PDT, ID: 23264565
[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

MS Access SQL Query -- sorting question

Asked by trcamp in Microsoft Access Database, Microsoft Excel Spreadsheet Software, Databases Miscellaneous

Hi,

I need to create an Access SQL query that pulls only selected records from a table.  My table contains the following:

"Location", "parameter", date parameter was sampled ("date"), and parameter result ("result")

There are numerous "locations" in the db.  And each location has numerous "parameters" that are sampled periodically (iron, calcium, mercury, etc).  And, each parameter has numerous sample dates associated with it.

I need a query that will show me 2 things:

1) First I need to see all parameter results for each location, and their associated sample dates.  That's easy and it would look like this:

location        parameter         date sample collected     sample result
Location 1     parameter A     Oct 5, 2001                        20
Location 1     parameter A     Jan 2, 2002                       10
Location 1     parameter A     Nov 6, 2005                       50
Location 1     parameter B     Oct 5, 2001                         1
Location 1     parameter B     Oct 9, 2002                         2
Location 1     parameter B     Dec 5, 2004                        8
Location 1     parameter C     Oct 5, 2001                     1000
Location 1     parameter C     Oct 8, 2001                      3000
Location 2     parameter A     Oct 5, 2001                          40
Location 2     parameter A     Jan 2, 2002                          20
Location 2     parameter B     Nov 6, 2005                         14
Location 2     parameter B     Nov 9, 2005                         12
Location 2     parameter C     Nov 6, 2005                     1800
Location 3     parameter A     Apr 3, 2006                          30

2) Second, I need:

A list of distinct (location/parameter) and the associated median result from all sample dates for that location and parameter.  (Note:  If only one result  exists for a given location and parameter then that single value should be used as the median.  So, using the example above, my result would be:

location         paramter        median result
Location 1     Paramter A     20
Location 1     Paramter B      2
Location 1     Parameter C    2000
Location 2     Parameter A     30
Location 2     Parameter B     13
Location 2     Parameter C     1800
Location 3     Parameter A     30

Please let me know if you need any additional description.  I have attached a sample excel spreadsheet that looks just like my Access database.  Thanks in advance!

Ted

Attachments:
 
excel spreadsheet that looks like my MS Access table
 
[+][-]03/24/08 11:05 AM, ID: 21195382

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.

 
[+][-]03/24/08 11:08 AM, ID: 21195418

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.

 
[+][-]03/24/08 11:53 AM, ID: 21195814

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

Zones: Microsoft Access Database, Microsoft Excel Spreadsheet Software, Databases Miscellaneous
Sign Up Now!
Solution Provided By: cactus_data
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03/24/08 11:57 AM, ID: 21195837

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...
20090824-EE-VQP-74 / EE_QW_2_20070628