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 > General > Database Concepts & Design > candidate key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-08, 20:20
ravi.vatalnagraj ravi.vatalnagraj is offline
Registered User
 
Join Date: Oct 2008
Posts: 1
candidate key

Can a relation have the number of candidate keys greater than its attributes?

Please give an example?
Reply With Quote
  #2 (permalink)  
Old 10-05-08, 03:34
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
No relation of mine is a candidate for more keys than attributes, since only some relations get any key at all. My mother-in-law has many attributes but only one key.

-PatP
Reply With Quote
  #3 (permalink)  
Old 10-05-08, 04:36
aetherealize aetherealize is offline
Registered User
 
Join Date: Oct 2008
Posts: 8
Ok, I now see how homework problems could be easy to spot.
Reply With Quote
  #4 (permalink)  
Old 10-05-08, 04:40
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
It may help you if you think about the edge cases.
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