Can anyone help me? Can i know what is the difference between superkey and primary key?
what is actually candidatekey?
mathewmoozh
0
Newbie Poster
Recommended Answers
Jump to Postfields in a table:
id
firstName
surname
dob
mobileNum
shoesize
city
eyecolor
job
roomNum
socialSecurityNumber
Superkey is any field or combination of fields that can uniquely identify a row
So the following are all superkeys
id
id, dob
id, socialSecurityNumber
socialSecurityNumber
socialSecurityNumber,job
socialSecurityNumber, job, dob
socialSecurityNumber, city, shoesize
…
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.