943,754 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Nov 10th, 2008
0

Can you please check my ER Diagram?

Expand Post »
Hi, I have produced an er diagram for an assignment which I have attached. Can somebody please tell me if it is correct and if not can you please let me know where I went wrong

Thanks
Attached Thumbnails
Click image for larger version

Name:	er diagram1.GIF
Views:	133
Size:	19.3 KB
ID:	8104  
Attached Files
File Type: doc Database Assignment.doc (29.0 KB, 124 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottyscotty19 is offline Offline
22 posts
since Nov 2008
Nov 10th, 2008
0

Re: Can you please check my ER Diagram?

Your current ER Diagram is a good start, but let me ask you some questions that may make you want to change your diagram a little:

1) How can you track if a student wants to take a module that is not within his course? ("a student may take one module at each level from outside their course")

2) How do you track which facilities are needed for each module? I see your diagram supports modules using facilities; however, how do you know if the facilities assigned to the module meet the needs for the module?

3) Can you explain the purpose of the studies entity? The reason I ask is because I was wondering how you are tracking which course each module belongs in.

4) I would recommend tracking credits as an attribute of one of the existing entities. can you identify the entity I would add it to?

5) Instead of having tutors directly joined to modules, I would recommend having a different entity directly joined to modules. Do you know which entity it is?
Reputation Points: 27
Solved Threads: 29
Posting Whiz
timothybard is offline Offline
317 posts
since Mar 2007
Nov 11th, 2008
0

Re: Can you please check my ER Diagram?

Thanks for your advice REALLY APPRECIATED

How can you track if a student wants to take a module that is not within his course?
Can you explain the purpose of the studies entity?


I thought that the studies entity would cover this I did need to name it better. Or Am I wrong?

How do you track which facilities are needed for each module?

I dont have a clue I have tired to include this in it just doesn't seem to work

I would recommend tracking credits as an attribute of one of the existing entities. can you identify the entity I would add it to?


I could put them on the Academic record

Instead of having tutors directly joined to modules, I would recommend having a different entity directly joined to modules. Do you know which entity it is?

A bit confused with this it looked right to me and everything else I try seems wrong. I now know that it is wrong I just cant figure out what entity I can use. Unless I put department then tutors.

When I was given this assignment I was told that there is around 18 entities can you see any that I might need that I have missed?

Thanks again for replying and taking some time to understand my problem
Last edited by scottyscotty19; Nov 11th, 2008 at 9:34 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottyscotty19 is offline Offline
22 posts
since Nov 2008
Nov 11th, 2008
0

Re: Can you please check my ER Diagram?

1) The way you have your ER Diagram drawn, each studies record will have a course foreign key. From the course entity, you can find out which student is associated with the studies record. In other word, to get from the studies entity to the student entity, you have to go through the course entity. The problem with this is that if the student is taking a module that is not within his course, then there is no course record to go from the studies entity to the student entity.

2) To track the facilities needed for each module, there will need to be a many-to-many relationship from the module entity to the facilities entity.

3) I was thinking that credits can be recorded as an attribute in the studies entity. Since each module the student passes counts as one credit and since the studies entity tracks which modules the student is taking, I would add an attribute in the studies entity that tracks whether the student has passed the module or not.

4) My thinking with this point is that each module contains lectures and each lecture is taught by a tutor. Therefore, I would remove the relationship between the tutor and the module and replace it with a relationship between the module and the lecture. With the way you have things set up, I think there will be an issue if the tutor for a module changes sometime during the module.

Personally, 18 entities seems high; however, I will have to review the requirements again to see how many entities I would use. I'll have to get back to you on that.
Reputation Points: 27
Solved Threads: 29
Posting Whiz
timothybard is offline Offline
317 posts
since Mar 2007
Nov 11th, 2008
0

Re: Can you please check my ER Diagram?

I was told that if I had a many to many relationship then I had to create a new table is this not true?. I have attached a document that shows the format of the assignment.

Thanks again.
Attached Files
File Type: doc format.doc (32.0 KB, 64 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottyscotty19 is offline Offline
22 posts
since Nov 2008
Nov 11th, 2008
0

Re: Can you please check my ER Diagram?

I see what you are saying now I have modules one to many to facilities and facilities many to one to room.

I still cant find any more entities that I need, if anybody sees any that I have missed, I would appreciate it if you could let me know.

Thanks
Last edited by scottyscotty19; Nov 11th, 2008 at 8:37 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottyscotty19 is offline Offline
22 posts
since Nov 2008
Nov 12th, 2008
0

Re: Can you please check my ER Diagram?

I have tried to do what you suggested timothybard my new er diagram is attached what do you think?

I wasn't sure if I should have the student entity to the modules entity 1 to many or student to studies 1 to many.
Attached Thumbnails
Click image for larger version

Name:	4th er diagram.JPG
Views:	42
Size:	52.5 KB
ID:	8127  
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottyscotty19 is offline Offline
22 posts
since Nov 2008
Nov 12th, 2008
0

Re: Can you please check my ER Diagram?

What attributes will be in the academic record entity? Since you will have a credits earned attribute in the studies entity, I was thinking you could get rid of the academic records entity.

Secondly, I'm not sure what the head of office entity is for. My thought would be that the head of office would be an attribute in the department entity.

Also, instead of joining the room to the tutors entity, I would have it joined to the lectures entity because the lecture will be in a specific room.

Lastly, you need to review your relationships. There are a few that are going in the reverse direction and there are a few that need to be many-to-many relationships. If you identify the necessary many-to-many relationships, you may get to the 18 table count you need.
Reputation Points: 27
Solved Threads: 29
Posting Whiz
timothybard is offline Offline
317 posts
since Mar 2007
Nov 12th, 2008
0

Re: Can you please check my ER Diagram?

I will drop the academic table and the head of office.

Thanks

Lastly, you need to review your relationships.

I am having a massive problem finding theses many to many relationships, I have done nothing but review them and I cant seem to get them correct.

Are you saying that I shouldn't have a student and module link because that's going in reverse order? what about the module and facilities link should I drop that aswell?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottyscotty19 is offline Offline
22 posts
since Nov 2008
Nov 12th, 2008
0

Re: Can you please check my ER Diagram?

Okay, I read the original assignment and drew an ER Diagram based on the assignment. After drawing the ER Diagram, I counted the number of tables required and came up with 18 tables.

There are some key items that I had forgotten about and that are not included in your diagram:
1) Modules can be split up into sessions
2) Some lecture sessions can be associated with practical sessions
3) Some modules have prerequisite modules.
4) Modules are given either during the first semester, second semester or both.

Since the assignment does not mention departments or head of departments, I would leave those items out.
Reputation Points: 27
Solved Threads: 29
Posting Whiz
timothybard is offline Offline
317 posts
since Mar 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Database Design Forum Timeline: Little help
Next Thread in Database Design Forum Timeline: Database Design for Fee Schedule





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC