【发布时间】:2016-09-27 04:03:52
【问题描述】:
给定
INSURANCE PORTFOLIO (portfolio id, insurance company name, insurance company phone, ((agent name, agent license number, state of residence, ((policy number, policy description, annual premium, benefit, beneficiary details)),
number of policies)), number of policies in a portfolio)
我正在尝试将其纳入 3NF。我在正确的轨道上吗?
1NF:
1NF: INSURANCE PORTFOLIO:(portfolio id, insurance company name, insurance company phone,
,agentname, number of policies in a portfolio)
agentdetails: (agent name, agent license number, state of residence, policy number,number of policies in a portfolio#)
policydetails:(agent name#,policy number#, policy description, annual premium, benefit, beneficiary details)
2NF
2NF: INSURANCE PORTFOLIO:( agent name ,portfolio id, insurance company name, number of policies in a portfolio)
Agentdetails: (agent name, agent license number, state of residence, policynumber,number of policies in a portfolio#)
policydetails:(agentname,policy number, policy description, annual premium, benefit, beneficiary details)
3NF:
INSURANCE PORTFOLIO:( agent name ,portfolio id, phonenumber , number of policies in a portfolio)
agentdetails:(agent name#, agent license number, state of residence,policynumber,number of policies in a portfolio#)
policydetails:(agent name#,policy number#, policy description, annual premium, benefit, beneficiary details)
感谢任何指导
【问题讨论】:
-
对 3NF 的规范化需要了解各种表中的函数依赖关系。你没有给他们。 PS Re 1NF 见this answer and its linked answer。
-
请解释输入是什么。它似乎不是关系,因为没有出现双括号的属性名称。还请解释清楚双括号的含义。从您的示例中,它们似乎意味着类似于嵌套关系的值,而不是类似于元组的值。请参考您被告知的“0NF”和“1NF”的含义以及如何从中获得“1NF”设计。这些术语没有固定的含义。
标签: database-design normalization 3nf