| |
|
If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
|
 |

10-24-10, 14:02
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 6
|
|
|
Database Design review please!
|
|
Hello, I am new to both the DBForum community and to Databases themselves. I am taking a relational database course online (dumb idea) and seem to be struggling with some of the concepts. I was wondering if someone could look it over and see if it makes any sense? thanks a ton!
|
Last edited by georgebluff; 10-25-10 at 06:47.
|

10-24-10, 14:43
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by georgebluff
... and seem to be struggling with some of the concepts.
|
which ones?
|
|

10-24-10, 14:47
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 6
|
|
|
|
Most of it seems confusing, but in particular Foreign Keys. If you look at the ERD I post, my section part seems to have multiple Foreign Keys. Should the Faculty_Id a foreign key, or should it just be part of the section? When you looked at my ERD, did everything seem to be correctly related?
|
|

10-24-10, 15:10
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by georgebluff
When you looked at my ERD, did everything seem to be correctly related?
|
that's pretty hard to say without any information from you
an entity-relationship diagram is "correct" only insofar as it properly reflects the actual (or desired) characteristics of the data you are modelling
|
|

10-24-10, 15:13
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 6
|
|
The ERD that I created is modeling a database for a student registering for courses offered by a college or university. I am not sure if I'm suppose to start creating relationships around the Student_Id, or other entities that exist in the process of registering for a courses.
|
|

10-24-10, 15:22
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
do you know how to distinguish between an entity and an attribute of an entity?
|
|

10-24-10, 15:29
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 6
|
|
I thought an entity refers to an item that can be tracked and described in the database, and the attribute was information describing the entity. As for example in my ERD, the attributes of the Faculty were LName, FName, ect...,
but in Section, I thought that to have the Faculty related to the Section, I could just call the primary key Faculty_Id as an foreign key to the section, so that it would list if Faculty_Id within the Section entity.
Am I way off?
p.s. thank you for you quick responses. I wasn't even expecting anyone to respond at all...
|
|

10-24-10, 15:57
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by georgebluff
I thought an entity refers to an item that can be tracked and described in the database, and the attribute was information describing the entity.
|
that's a pretty good description
i don't understand what you said about faculty and section, though
what's a section? what's a faculty?
if you could give a definition of each of these entities, it would be easier for me to see how they are related
|
|

10-24-10, 16:24
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 6
|
|
The faculty is a teacher.
The Section is one section of a course being offered.
So I thought the correct relationship is one faculty teaches multiple courses. One course offers multiple sections, having one teacher teach the final one section of a specific course.
Then there are multiple departments offered through the registrar, and multiple students can register for a course through one registrar. Then after the registrar processes a registration request, the registrar creates multiple class schedules unique to each student_id.
|
|

10-24-10, 16:27
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by georgebluff
So I thought the correct relationship is one faculty teaches multiple courses. One course offers multiple sections, having one teacher teach the final one section of a specific course.
|
if this is the way it is, then that's how i'd model it
the only tricky part would be whether you want a relationship from the teacher to the course, and i would think not, because it would be obtained transitively from the relationship between teacher and section
Quote:
Originally Posted by georgebluff
Then there are multiple departments offered through the registrar, and multiple students can register for a course through one registrar. Then after the registrar processes a registration request, the registrar creates multiple class schedules unique to each student_id.
|
sounds right
any more questions about the concepts?
|
|

10-24-10, 16:46
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 6
|
|
In regards to the Request entity, is the Registration_Request correctly placed?
What I was trying to do is Multiple students create a registration_request unique to their student Id. Then the Registrar takes the Registration_request and compiles a StudentScedule, which would be unique to both the Student_ID, and the Registration_Request created by the student.
Again, thank you for looking this over and helping me out. I have been working on this for about two weeks now, but since I'm taking this class online I don't have the reassurance of showing my teacher what I'm trying to do, and get some input on it.
|
|

10-24-10, 16:57
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by georgebluff
In regards to the Request entity, is the Registration_Request correctly placed?
|
what doubts do you have about it?
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|