Database Design #11
Pinned
Harikrishna-Srinivasan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A good design, always needs a good compromise
1. Entity Design
2. Relationships
CustomerIDin the Order table.StudentCoursetable withStudentIDandCourseID.3. Normalizations
1NF (First Normal Form):
2NF (Second Normal Form):
StudentCoursetable,StudentNameshould not depend only onStudentID.3NF (Third Normal Form):
Studenttable has bothStudentIDandAdvisorName, theAdvisorNameshould be moved to anAdvisorstable.BCNF (Boyce-Codd Normal Form):
StudentIDdeterminesStudentName, ensureStudentIDis a superkey (if not, split the table).4NF (Fourth Normal Form):
Courseentity holds multiple values likeInstructorandLocation, break this into separate tables to avoid multi-valued dependencies.5NF (Fifth Normal Form):
Course-Student-Instructorrelationship, break it into three tables:StudentCourse,CourseInstructor, andInstructorStudentto avoid unnecessary join dependencies.4. Foreign Keys & Referential Integrity
5. Decomposition Rules
6 NF and other Normal Forms are not discussed here, as they are not of (any) higher significance.
Follow these Normalization Forms, and try to design 4NF or 5NF form of Entity Sets. Every Entity Set must at least satisfy 4NF property. Then only it is considered good design.
Beta Was this translation helpful? Give feedback.
All reactions