Solved

Database Design

Posted on 2012-03-13
8
387 Views
Last Modified: 2012-06-27
I need to design an ERd for a student teacher scheduler program. The program would let the following to take place :
the teacher would be able to set his office hours
the teaxcher would be able to set free times for meeting students
the student would be able to read teacher meeting time periods and reserve one of them.

what is the best way to design that, how many tables do I need.
0
Comment
Question by:lojayn
  • 4
  • 2
8 Comments
 
LVL 9

Expert Comment

by:macarrillo1
ID: 37714574
lojayn,  is this a homework assignment?
0
 
LVL 10

Accepted Solution

by:
Derokorian earned 150 total points
ID: 37714823
I would say 4 tables: Students (id, name, whatever else), Instructors (id, name, whatever else), AvailableHours (id,instructor_id,begin available datetime, end available datetime) and Scheduled (available_id, student_id)

HTH
0
 

Author Comment

by:lojayn
ID: 37714998
what about separating the adviser office hours and the meetings time hours in two different tables. If I did so, what is the best design for office hours table. I amthinking if ( instructor_id, Mon_hours, Tue_hours, Wed_hours, Thur_hours)
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 10

Expert Comment

by:Derokorian
ID: 37715015
That seems like poor database design IMO. Instead you should use something like (instructor_id, day (mon, teus, etc), begin (08:00 for example) and end (13:00 for example)
0
 
LVL 10

Expert Comment

by:Derokorian
ID: 37715036
Then for an instructor you might have 3 rows:
3,Monday,08:00,12:00
3,Wednesday,09:00,12:00
3,Friday,13:00,15:00

This is especially helpful if an instructor has office hours say from 9am to 11am and 3pm to 5pm the same day.
0
 

Author Comment

by:lojayn
ID: 37718229
I apologize, I accepted the wrong solution. How would I fix that
0
 
LVL 10

Expert Comment

by:Derokorian
ID: 37719815
Hey thanks for the points! Hope your question was answered to your satisfaction =D
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question