我需要设计能够跟踪以下特征的数据库:
stdnum // student number
postcode // postal code
phone_number // student phone number
city // student address: city
还列出功能上的依赖:
stdnum -> postcode
stdnum -> phone_number
postcode -> city
phone_number -> city
我需要找到一个无损失的工作机会,保护依赖,第三个正常形式的分解。
I have tried different decompositions but there was no one that obeys all requirements (they are: lossless-join, dependency preserving, 3rd normal form).
E.g. if I leave the original relation without changes (table would have all 4 attributes) I would get lossless-join and dependency preserving but not 3NF, only 2NF.
The decomposition(stdnum, postcode, Telephone_ number) JOIN (postcode, City) JOIN (phone_ number, City)
is in 3NF and Depend conservation, but not lossless-join.