Question

7. A relation schema is given as SalesRecord(sID, sName, cID, CID, PNo, pName, quantity). The functional dependencies are fd1

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SalesRecord(sID,sName,cID,pNo,pName,quantity)

sID,cID--->pNo,pName,quantity

sID--->sName

cID--->cName

pNo--->pName   candidate key=sID,cID

for 1NF:   sID,cID--->pNo

sID,cID--->pName

sID,cID--->quantity

sID--->sName

cID--->cName

pNo--->pName Therefore 1NF satisfied.

for 2NF: candidate key=sID,cID prime attributes: {sID,cID}

non-prime attributes: {sName,cID,pNo,pName,quantuty,cName}

sID,cID--->pNo : total dependency

sID,cID--->pName : total dependency

sID,cID--->quantity : total dependency

sID--->sName : partial dependency

cID--->cName : partial dependency

pNo--->pName : total dependency

R:[sID,cID,,pNo,pName,quantity] R1:[sID,sName,cID,cName]

sID,cID--->pNo sID--->sName   

sID,cID--->pName   cID--->cName

sID,cID--->quantity

pNo--->pName Therefore, 2NF satisfied.

for 3NF: sID,cID--->pNo :it is in 3NF

sID,cID--->pName :it is in 3NF

sID,cID--->quantity :it is in 3NF

pNo--->pName :it is not in 3NF, because there is transitive dependency.

R:[sID,cID,,pNo,pName,quantity] R1:[sID,sName,cID,cName] R2:[pNo,pName]

sID,cID--->pNo sID--->sName pNo--->pName

sID,cID--->pName   cID--->cName

sID,cID--->quantity

Now, 3NF is satisfied.

  

Add a comment
Know the answer?
Add Answer to:
7. A relation schema is given as SalesRecord(sID, sName, cID, CID, PNo, pName, quantity). The functional...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT