私はこれが私が理解できなかった過去の宿題のためのものであり、ここで明確化を求めてきたと言いたいと思います。この特定の質問の正規化に問題があります。外部、プライマリキー、1nf、2nf、3nf、与えられたテーブルと関数の依存関係を決定する
所与
1.PetStore(storeBranchName, storeAddr, storeManager,(customerName, customerAddr, customerPhone,(petName, petBreed, petSex, price)))
のFD
storeBranchName → storeAddr, storeManager
customerName → customerAddr, customerPhone
customerName, petName → petBreed, petSex
customerName,storeBranchName → petName
petBreed → price
。この関係は1NFですか?そうでない場合、それはなぜですか?それを1NFに入れてください。
b。この関係は2NFですか?そうでない場合、それはなぜですか?それから2NFに入れてください。
c。この関係は3NFであるか?そうでない場合、それはなぜですか? 3NFに入れてください。
d。関係の主キー(下線)と外部キー(イタリック体)を識別します。
私の質問はどのようになっていますか? 私の試みは解決策です。
a。表は、各値がアトミック値
1NF
PetStore(storeBranchName, storeAddr, storeManager,customerName, customerAddr, customerPhone,petName, petBreed, petSex, price)
ではないので、ここで**** 1NFでない私が有する問題****
Bを起動する場合です。それは
2NF
store(storeBranchName, storeAddr, storeManager)
customer(customerName, customerAddr, customerPhone)
pet(petName,petbreed,petsex)
C 1NFではなかったので関係は2NFにすることはできませんか。?
3NF
store(storeBranchName, storeAddr, storeManager)
customer(customerName, customerAddr, customerPhone)
pet(petName, petBreed, petSex)
petCust(customerName,storeBranchName, petName)
petPrice(petBreed, price)
D。私は実際にプライマリキーがここに存在するかどうかを決定するのに問題があり、外来キーのコミックを実際に理解していません。誰かが私に何かヒントや手がかりを与えることができるなら、私は本当に何かを訂正して間違っていない限り、まっすぐな答えを得ない方が好きです。どんな助けもありがとう。