Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Database Design for a School

    I'm designing a database for a non-profit School. What they need is a solution that will store Students (Name, address, so forth...) and also the student's schedules.

    I have planned the database to be something like this:



    Table_Students (Fields: StudentID, Name, Address, Class1, Class2, Class3....ClassX)

    Table_Class (Fields: ClassID, ClassName, Instructor, TimeStart, TimeEnd)

    What I figured I'd do is create a relationship between the two tables along the ClassX fields and ClassID field. I figured that this would let me input each student's list of classes into their individual records, where I only use as many of the ClassX fields as I need.

    As I have begun attempting to develop this though, it is beginning to feel sloppy and I don't believe it is the most elegant solution.

    Tell me: is there a better way to do this?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would strongly recommend you look at sample db's and templates on the web. I suspect there is something close to what you need and will be better normalized to start. Repeating fields is a dead give away on normalization issues. Think Tall and Skinny rather than Short and Wide.

  3. #3
    maximus's Avatar
    maximus is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    say that every student is in a particular class so instead of including a Class1, Class2, Class3 ect just include a single field ClassID. Create a separate Table Class with (class_ID ((Pkey)(Autonumber) and Class (Text)) link it to class field in your Table_student using the lookup wizard creating a combo feild.

    do the same in your Table_Class link ClassID to new Class table using the lookupwizard.

    now the job is simple the ClassID field in the Table_student can easily be linked with ClassID in the Table_Class. To generate a report design a select query with Table_Students and Table_Class.

    Table_Students (Fields: StudentID, Name, Address, ClassID)

    Table_Class (Fields: ClassID, ClassName, Instructor, TimeStart, TimeEnd)

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

Similar Threads

  1. Database Design
    By mzrihe1x in forum Database Design
    Replies: 1
    Last Post: 06-17-2009, 09:09 PM
  2. Resource/Timesheet Database Design
    By lynchoftawa in forum Database Design
    Replies: 0
    Last Post: 06-06-2009, 10:57 PM
  3. Database Design Issue
    By joekiteire in forum Database Design
    Replies: 6
    Last Post: 02-26-2009, 04:53 AM
  4. Database Design Problem
    By Kurth in forum Access
    Replies: 0
    Last Post: 08-14-2008, 04:09 AM
  5. Need help checking database design
    By abc7 in forum Database Design
    Replies: 1
    Last Post: 10-29-2007, 08:08 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