TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Third Normal Form

11 点作者 kamaraju超过 1 年前

2 条评论

karmakaze超过 1 年前
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 未加载
belter超过 1 年前
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>