Question

Hello,

I'm having trouble understanding entities in database. How do I find out which is the super key, candidate key, and primary key? I dont undersntad

Thank you for your help in advance

3) Consider the following entities representing persons (owners and drivers), vehicles, ad accidents: person (ssn, name, stre

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

superkey -- superkey is a combination of attributes that can be uniquely used to identify a database record. A table might have many superkeys.

AccidentNum , VinNum ,ssnDriver,accidentLoc,Date are a combination of attributes that uniquely identify a record. While ssnOwner is not uniquely identified as a record.Because ssnOwner has multiple vehicles.

Candidate keys--Candidate keys are a special subset of superkeys that do not have any extraneous information in them.

AccidentNum , VinNum are a subset of the super key which identified the record uniquely.

Primary Key-- The attribute or combination of attributes that uniquely identifies a row or record in a relation is known as a primary key.

VinNum is primary key that uniquely identifies a row or record in a relation.

Add a comment
Know the answer?
Add Answer to:
Hello, I'm having trouble understanding entities in database. How do I find out which is the...
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