Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Query showing averages for groups

    I have a table that contains various test results for the same model golf shaft. I would like to have a query that would show each Model only once yet have an average for the various amount of tests performed. Can this be done without a lot of code?

    It seems like it should be simple... To state it another way I would like for the Model "Aldila NV 65 S" and "Aldila NV 65 X" to show up in a query only once but the other colums ie. 41", 36", etc to have the average of the tests performed.

    If anyone could help, it would be greatly appreciated.

    Anthony




  2. #2
    NassauBob's Avatar
    NassauBob is offline Not THAT Green
    Windows XP Access 2003
    Join Date
    Feb 2010
    Location
    Augusta, GA
    Posts
    61
    So, let me see if I understand what you want...

    you would like to see each club, with an average of each of the numeric fields to follow?

    SELECT Model, AVG(41"), AVG(36"), ... AVG(11")
    FROM TABLE_NAME
    GROUP BY Model


    That outta do it.

    BTW, are those the column names above, or just caption values, and not the actual column names? Because it is very not good programming practice to have punctuation marks in column names. Not busting on you, honestly, really wanting to help you to avoid headaches down the road. :-)

    P.S. you may also want to remove the "Aldila" portion from the model number field, because it appears to be redundant data from the manufacturer column, and will take up (what seems to be) unnecessary storage space in your database.

    Shane
    Last edited by NassauBob; 02-03-2010 at 09:07 PM. Reason: added an aside

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 12-07-2009, 07:27 AM
  2. Group & Reports (more than 4 Groups??)
    By JohnS in forum Reports
    Replies: 3
    Last Post: 10-01-2009, 07:11 AM
  3. Criteria added to Query - Nothing showing
    By eabtx in forum Queries
    Replies: 1
    Last Post: 03-02-2009, 10:06 PM
  4. using date for groups
    By antcox2004 in forum Reports
    Replies: 3
    Last Post: 01-28-2006, 07:44 PM
  5. Null Values not showing up in a Query
    By Valli in forum Queries
    Replies: 0
    Last Post: 01-04-2006, 03:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums