first and foremost i would like to say that this is for a past homework assignment that i could not figure out and have come here to ask for clarification. I am having trouble with normalization for this specific question.
given
1.PetStore(storeBranchName, storeAddr, storeManager,(customerName, customerAddr, customerPhone,(petName, petBreed, petSex, price) ) )
FDs
storeBranchName → storeAddr, storeManager
customerName → customerAddr, customerPhone
customerName, petName → petBreed, petSex
customerName,storeBranchName → petName
petBreed → price
a. Is this relation in 1NF? If not, why isn't it? Then put it in 1NF.
b. Is this relation in 2NF? If not, why isn't it? Then put it in 2NF.
c. Is this relation in 3NF? If not, why isn't it? Then put it in 3NF.
d. identify the primary keys(underline) and the foreign keys(italicize) for the relation.
my question now is how would i determine what form this is in? my attempt at a solution.
a. the table is not in 1NF because each value is not at atomic value
1NF
PetStore(storeBranchName, storeAddr, storeManager,customerName, customerAddr, customerPhone,petName, petBreed, petSex, price )
****here is where i start having problems****
b. the relation cannot be in 2NF because it was not in 1NF
2NF
store(storeBranchName, storeAddr, storeManager)
customer(customerName, customerAddr, customerPhone)
pet(petName,petbreed,petsex)
c.?
3NF
store(storeBranchName, storeAddr, storeManager)
customer(customerName, customerAddr, customerPhone)
pet(petName, petBreed, petSex)
petCust(customerName,storeBranchName, petName)
petPrice(petBreed, price)
d. i really have trouble deciding what the primary keys would be here and dont really understand the cocnept of foreign keys. if anyone could give me any hints or clues i really do prefer to not receive a straight answer unless its by correcting something i may have done wrong. any help would be appreciated.