可空列的数据库功能依赖性

时间:2013-10-01 22:16:26

标签: sql database normalization nullable

我的非分解,非规范化的Job Application表中有4列,它们都是Nullable,例如我的表是:

Name | SSN | Education   | City | Job Applied | Post | Job Obtained | Post Obtained

John. | 123 | High School | LA   | USPS        | MailMan | USPS        | MailMan

John. | 123 | High School | LA   | Dept. of Agri        | Assistant | *null* |  *null*

Sam. | 123 | BS | NY | Intel | QA Analyst | Intel |  QA Analyst

前4列是不可空的,因此我可以轻松确定它们之间的功能依赖性。

最后4列,可以有也可以没有值,具体取决于某人是否有工作,也取决于他/她是否已申请工作。

我的问题是:我可以在可空列上具有功能依赖性,无论它们是在LHS还是RHS上。

1 个答案:

答案 0 :(得分:0)

答案应该是肯定的,请参阅:

http://en.wikipedia.org/wiki/Functional_dependency

相关问题