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?