Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Database normalization
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Satisfying ETNF === Suppose the franchisees can also order books from different suppliers. Let the relation also be subject to the following constraint: * If a certain '''supplier''' supplies a certain '''title''' * and the '''title''' is supplied to the '''franchisee''' * and the '''franchisee''' is being supplied by the '''supplier,''' * then the '''supplier''' supplies the '''title''' to the '''franchisee'''.<ref name=":2">{{Cite book|url=https://books.google.com/books?id=Jx5UCwAAQBAJ&q=etnf%20normalization&pg=PT138|title=The New Relational Database Dictionary: Terms, Concepts, and Examples|last=Date|first=C. J.|date=December 21, 2015|publisher="O'Reilly Media, Inc."|isbn=9781491951699|pages=138|language=en}}</ref> {| class="wikitable" |+Supplier - Book - Franchisee !<u>Supplier ID</u> !<u>Title</u> !<u>Franchisee ID</u> |- |1 |Beginning MySQL Database Design and Optimization |1 |- |2 |The Relational Model for Database Management: Version 2 |2 |- |3 |Learning SQL |3 |} This table is in [[Fourth normal form|4NF]], but the Supplier ID is equal to the join of its projections: '''<nowiki>{{Supplier ID, Title}, {Title, Franchisee ID}, {Franchisee ID, Supplier ID}}</nowiki>.''' No component of that join dependency is a [[superkey]] (the sole superkey being the entire heading), so the table does not satisfy the [[Essential tuple normal form|ETNF]] and can be further decomposed:<ref name=":2" /> {| | {| class="wikitable" |+Supplier - Book !<u>Supplier ID</u> !<u>Title</u> |- |1 |Beginning MySQL Database Design and Optimization |- |2 |The Relational Model for Database Management: Version 2 |- |3 |Learning SQL |} | {| class="wikitable" |+Book - Franchisee !<u>Title</u> !<u>Franchisee ID</u> |- |Beginning MySQL Database Design and Optimization |1 |- |The Relational Model for Database Management: Version 2 |2 |- |Learning SQL |3 |} | {| class="wikitable" |+Franchisee - Supplier !<u>Supplier ID</u> !<u>Franchisee ID</u> |- |1 |1 |- |2 |2 |- |3 |3 |} |} The decomposition produces ETNF compliance.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Database normalization
(section)
Add topic