Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: help with normalization

Re: help with normalization

From: openleren <openleren_at_skynet.be>
Date: Fri, 2 Sep 2005 15:46:49 +0200
Message-ID: <43185789$0$10965$ba620e4c@news.skynet.be>


Let me explain a little further: this is as far as I get:

STUDENT(studentNr{PK}, Name,..., classNr{FK}) TEACHER(teachernr{PK}, name,...)

COURSE(courseNr{PK}, name,...)

CLASS(ClassNr{PK}, description

ROOM(roomNr{PK},descript,...)

ROSTER(classcode{PK}, courseNr{PK}, teacherNr{PK}, RoomNr{PK}, period{PK})

In the last table I end up with the entire thing being a composite key. I suspect it should be split,

because...how do I control:

Do I need to split this last table, and how?

thanks again, Jan

"Tonkuma" <tonkuma_at_jp.ibm.com> wrote in message news:1125667802.811424.40080_at_f14g2000cwb.googlegroups.com...
>I think that you shoud consider to add forein keys and constraints,
> before consider normalization.
> For Example:
>> - a teacher can teach several courses
>
> Add reference to StaffNo(Primary key of Teacher table) to Cource table.
>> Course(CourseNo, description, TeacherNo) (TeacherNo reference StaffNo of
>> Teacher table)
>
Received on Fri Sep 02 2005 - 08:46:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US