Results 1 to 2 of 2
  1. #1
    Xi0N is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    1

    Simple access situation

    Im quite new to the use of sql, and i have this problem right now:



    I have two tables:

    Schools
    Students

    Each row in the students table has a "school_code" field that corresponds with a code of one school in the Schools tables.


    I have to count how many students are there in each school: Basically, i should do a new query with the entire table "Schools" and add one more field with the number of students in each school......

    Can anyone tell me how can i do this? For me is quite difficult to guess it right now, and i have a bit of an urgency with this.


    thanks!

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Create a new query and add the Schools table. Double-click the school_code field to bring it in to your query. Put a GroupBy on and change the Total to Count.

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

Similar Threads

  1. Simple Expression
    By Bridgid in forum Queries
    Replies: 7
    Last Post: 06-17-2009, 09:07 PM
  2. Access Simple Stuff, help
    By clwclw in forum Access
    Replies: 1
    Last Post: 05-02-2009, 03:10 PM
  3. Very simple question!
    By fiddley in forum Programming
    Replies: 2
    Last Post: 04-28-2009, 02:16 AM
  4. Please help w/ simple languages db
    By TalentNation.net in forum Database Design
    Replies: 0
    Last Post: 01-23-2009, 09:11 AM
  5. Extremely simple ACCESS DB
    By austin3i62 in forum Access
    Replies: 1
    Last Post: 02-07-2008, 11:51 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