Hi,
I want to represent a timetable on a mysql database.
I had the idea that i should have three tables:
1.a classdetails table- containing class capacity, classroom name e.t.c
2.a class_sessions table with: start_time and end_time of session,
3.a class_unit table with: the name of the course (MAT003. et.c)
there would also be appropriate foreign keys in class_sessions table and class_unit tables
eventually i want to be able to query for a 'free' class ( one that does not have a class presently-at the time of running of the query)
and return its name e.g ( Room 5b)
Will the tables i have listed be sufficient for the query at hand?
any ideas how to make this better will be appreciated.
Thank you.
I want to represent a timetable on a mysql database.
I had the idea that i should have three tables:
1.a classdetails table- containing class capacity, classroom name e.t.c
2.a class_sessions table with: start_time and end_time of session,
3.a class_unit table with: the name of the course (MAT003. et.c)
there would also be appropriate foreign keys in class_sessions table and class_unit tables
eventually i want to be able to query for a 'free' class ( one that does not have a class presently-at the time of running of the query)
and return its name e.g ( Room 5b)
Will the tables i have listed be sufficient for the query at hand?
any ideas how to make this better will be appreciated.
Thank you.
Comment