Results 1 to 2 of 2
  1. #1
    Equalizer700 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    1

    Comnbining multiple rows into one row

    We have a table that has school IDs, grades (1-12), subjects (reading, math) and scores (integers). There is one row in the table per subject/grade combination. For instance, reading grade 2 will be one row, reading grade 3 is another row, etc. There is a full set of subject/grade rows for each school, so there are 24 rows per school (12 reading, 12 math). We need to run a query that combines all the subject/grade/scores into one row per school, so the result row would have school_ID, reading_grade_1_score, math_grade_1_score, reading_grade_2_score, math_grade2_score, etc.

    All the rows for one school have the same school_ID.

    Can someone point me in the direction of how to accomplish this? Help will be greatly appreciated!

  2. #2
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184
    Sounds like you need concatenation, this link might help, keep searching for the answer. Sure someones done it.
    http://stackoverflow.com/questions/5...ditions-needed

    Good Luck

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

Similar Threads

  1. Unmatched with multiple columns and rows
    By sampson20 in forum Programming
    Replies: 1
    Last Post: 04-18-2011, 10:48 AM
  2. Concatenate Multiple Rows into One
    By Knarly555 in forum Queries
    Replies: 5
    Last Post: 11-12-2010, 06:51 PM
  3. Inserting multiple rows using a value in a field
    By z1efuller1 in forum Queries
    Replies: 1
    Last Post: 01-06-2010, 11:20 AM
  4. Replies: 5
    Last Post: 12-10-2009, 10:33 PM
  5. Combine multiple rows into one cell
    By zarfx4 in forum Queries
    Replies: 8
    Last Post: 06-08-2009, 10:42 AM

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