09/19/23: For the latest on 1NF see: FIRST NORMAL FORM - A DEFINITIVE GUIDE
Note: In "Setting Matters Straight" posts I debunk online pronouncements that involve fundamentals which I first post on LinkedIn. The purpose is to induce practitioners to test their foundation knowledge against our debunking, where we explain what is correct and what is fallacious. For in-depth treatments check out the POSTS and our PAPERS, LINKS and BOOKS (or organize one of our on-site/online SEMINARS, which can be customized to specific needs). Questions and comments are welcome here and on LinkedIn.
(Continued from Part 2)
In this part we set matters straight about first normal form (1NF)
What's right/wrong about this database picture?
“A relation is in first normal form (1NF) if (and only if):In practice, 1NF means that you should not have lists or other composite structures as attribute values. Below is an example of a relation that does not satisfy 1NF criteria:This relation is not in 1NF because the courses attribute has multiple values.
- Each attribute contains only one value.
- All attribute values are atomic, which means they can’t be broken down into anything smaller.
STUDENT-COURSES
==================================================
STUDENT COURSES
-=======================--------------------------
Jane Smith Databases, Mathematics
John Lipinsky English Literature, Databases
Dave Beyer English Literature, Mathematics
--------------------------------------------------
To transform this relation to the first normal form, we should store each course subject as a single value, so that each student-course assignment is a separate tuple.”
--Vertabelo.com