Solved

Database Design

Posted on 2012-03-13
8
385 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

932 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now