What is a superkey?(better,with examples).what is the difference between composite key and a superkey? composite key= compound key?
silvercats 10 Junior Poster
Recommended Answers
Jump to PostSuperkey - A superkey is defined in the relational model as a set of attributes of a relation variable (relvar) for which it holds that in all relations assigned to that variable there are no two distinct tuples (rows) that have the same values for the attributes in this set.
…
Jump to PostGiven table: EMPLOYEES{employee_id, firstname, surname, sal}
Possible superkeys are:
{employee_id}
{employee_id, firstname}
...
(employee_id, firstname, surname, sal}Only the the minimal superkey - {employee_id} - will be considered as a candidate key.
All 6 Replies
debasisdas 580 Posting Genius Featured Poster
kvprajapati commented: Aye :) +14
silvercats 10 Junior Poster
debasisdas 580 Posting Genius Featured Poster
silvercats 10 Junior Poster
debasisdas 580 Posting Genius Featured Poster
silvercats 10 Junior Poster
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.