我可以通过示例获得数据库概念中函数依赖的示例吗?
我理解当一个特定的列依赖于另一个列时,它被称为功能依赖于另一个列。但是我无法使用example..plz帮助我显示
答案 0 :(得分:2)
让R成为 NewStudent(stuId,lastName,major,credits,status,socSecNo)
R中的FD包括
{stuId}→{lastName}, but not the reverse
{stuId} →{lastName, major, credits, status, socSecNo, stuId}
{socSecNo} →{stuId, lastName, major, credits, status, socSecNo}
{credits}→{status}, but not {status}→{credits}
邮编→AddressCity
16652 is Huntingdon’s ZIP
ARTISTNAME→BirthYear
Picasso was born in 1881
Autobrand→制造商,引擎类型
Pontiac is built by General Motors with gasoline engine
作者,标题→PublDate
Shakespeare’s Hamlet was published in 1600
琐碎的功能依赖
如果设置{Y}是集合{X}
的子集,则FD X→Y是微不足道的示例:如果A和B是R的属性,
{A}→{A}
{A,B} →{A}
{A,B} →{B}
{A,B} →{A,B}
都是琐碎的FD,不会对标准化的评估做出贡献。 了解更多详情..检查来源。 来源 - http://jcsites.juniata.edu/faculty/rhodes/dbms/funcdep.htm