![]() | |
#31
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#32
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#33
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#34
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#35
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#36
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#37
| |||
| |||
|
|
Srubys (AT) gmail (DOT) com wrote: ... Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) ... Heh, just to muddy the waters a little or even a lot, the conventional normalization discipline is really just a way to help determine a simple structure that avoids a lot of constraint verbiage. From what I gather of the typical SQL product it is effectively a sop that allows them to cop-out and not give very full constraint support. |
#38
| |||
| |||
|
|
greetings My book claims that for table to be in 1NF, we must: * Eliminate remove repeating groups of data * Create separate tables for each group of related data and identify each row with a unique column ( the primary key ) I know that for table to be in 1NF, we must remove repeating groups of data. But is it ( for relation to be in 1NF ) also required to create separate tables for each group of related data or is that just recommended and thus optional? |
|
Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) But would the following table also be considered in 1NF: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT, SUBJECT_NAME, TEACHER ) |
#39
| |||
| |||
|
|
greetings My book claims that for table to be in 1NF, we must: * Eliminate remove repeating groups of data * Create separate tables for each group of related data and identify each row with a unique column ( the primary key ) I know that for table to be in 1NF, we must remove repeating groups of data. But is it ( for relation to be in 1NF ) also required to create separate tables for each group of related data or is that just recommended and thus optional? |
|
Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) But would the following table also be considered in 1NF: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT, SUBJECT_NAME, TEACHER ) |
#40
| |||
| |||
|
|
greetings My book claims that for table to be in 1NF, we must: * Eliminate remove repeating groups of data * Create separate tables for each group of related data and identify each row with a unique column ( the primary key ) I know that for table to be in 1NF, we must remove repeating groups of data. But is it ( for relation to be in 1NF ) also required to create separate tables for each group of related data or is that just recommended and thus optional? |
|
Say we have non-normalized table STUDENT: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT1#, SUBJECT2#, SUBJECT1_NAME, SUBJECT2_NAME, TEACHER1_NAME, TEACHER2_NAME ) I realize best thing to do would be to create two tables: STUDENT-SUBJECT ( STUDENT#, SUBJECT#, SUBJECT_NAME, TEACHER_NAME ) STUDENT ( STUDENT#, STUDENT_NAME) But would the following table also be considered in 1NF: STUDENT ( STUDENT#, STUDENT_NAME, SUBJECT, SUBJECT_NAME, TEACHER ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |