Re: What are the differences between the terms, CANDIDATE KEY, PRIMARY KEY, SUPER KEY, COMPOSITE KEY?
From: Mark Johnson <102334.12_at_compuserve.com>
Date: Thu, 23 Feb 2006 15:44:42 -0800
Message-ID: <pphsv1h2rscs6s5lsr9t4dq7bj2c3qa6hr_at_4ax.com>
Date: Thu, 23 Feb 2006 15:44:42 -0800
Message-ID: <pphsv1h2rscs6s5lsr9t4dq7bj2c3qa6hr_at_4ax.com>
Mark Johnson <102334.12_at_compuserve.com> wrote:
>"Abhishek" <abhisheksgumadi_at_gmail.com> wrote:
>>a) Any attribute or a collection of attributes which uniquely
>>identifies the tuples in a relation is called a canditate key.
>A superkey can be said to begin with all the attributes in a tuple and
>reduce to those attributes which uniquely identify the tuple. So
>everything inbetween, as well.
Let me add, if it helps to clarify anything:
Primary key - uniquely identified
Superkey - uniquely identifies at a minimum Candidate - uniquely identifies Composite - but only if uniquely identifies Attribute - "" Superkey - uniquely identifies, and perhaps then some Candidate - uniquely identifies Composite - but only if uniquely identifies Attribute - "" Candidate Key - uniquely identifies Composite - but only if Attribute - "" Composite Key - may uniquely identify, may not more than one Attribute Attribute - may uniquely identify or not one AttributeReceived on Fri Feb 24 2006 - 00:44:42 CET