TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Third Normal Form

11 pointsby kamarajuover 1 year ago

2 comments

karmakazeover 1 year ago
I don&#x27;t consider this a good example of wanting 3NF.<p>&gt; A hypothetical example of a failure to meet third normal form would be a hospital database having a table of patients which included a column for the telephone number of their doctor. The phone number is dependent on the doctor, rather than the patient, thus would be better stored in a table of doctors. The negative outcome of such a design is that a doctor&#x27;s number will be duplicated in the database if they have multiple patients, thus increasing both the chance of input error and the cost and risk of updating that number should it change (compared to a third normal form-compliant data model that only stores a doctor&#x27;s number once on a doctor table).<p>For instance having a single doctor row means that input from all a doctors patients overwrite each other&#x27;s info about the doctor. Some may have special&#x2F;private numbers or an incorrect one overwriting good data. This form only makes sense if doctors also use the system to provide their own canonical data.
评论 #37707311 未加载
belterover 1 year ago
Preemptive Strike:<p>First normal form - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;First_normal_form" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;First_normal_form</a><p>Second normal form - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Second_normal_form" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Second_normal_form</a><p>&lt;call stack recursion...&gt;<p>Fourth normal form - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fourth_normal_form" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fourth_normal_form</a><p>Fifth normal form - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fifth_normal_form" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fifth_normal_form</a><p>Sixth normal form - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Sixth_normal_form" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Sixth_normal_form</a>