If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Primary Key or Super Key or Candidate Key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-11, 08:57
feli feli is offline
Registered User
 
Join Date: Jun 2011
Posts: 1
Primary Key or Super Key or Candidate Key

Hi everybody,

Hi I am preparing for my database exams. I hope this is the best place to clear my doubts.

Attributes-Customer Name, Social Security number, Age, Address

Could you please clear my doubt?
Is Social Security number a primary key or super key or candidate key?

I have confusion with these three terms. Please clear my doubt

Thank you
Reply With Quote
  #2 (permalink)  
Old 06-06-11, 07:47
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
A primary key is a candidate key and any candidate key is a superkey. The only interesting questions raised by your example are whether it makes sense to enforce uniqueness of a Social Security Number or even to expect customers to supply their SSN at all. Probably not. Without a clear statement of the business requirements you are trying to model it's not really possible to give a more useful answer.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On