User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 428,391 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,531 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser: Programming Forums
Views: 945 | Replies: 3 | Solved
Reply
Join Date: May 2008
Posts: 16
Reputation: mertucci is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
mertucci mertucci is offline Offline
Newbie Poster

What is the diffrence between Key and Superkey how can we understand ? help me

  #1  
May 18th, 2008
What is the diffrence between Key and Superkey how can we understand ? help me please
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 295
Reputation: tesuji is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 41
tesuji tesuji is offline Offline
Posting Whiz in Training

Re: What is the diffrence between Key and Superkey how can we understand ? help me

  #2  
May 19th, 2008
hi mertucci,

are in doing data modelling?
Superkey is any subset of attributes that uniquely identifies the tuples of a relation. This subset need not be minimal, that is, one can remove some attributes from it and it is still uniquely identifying. If all redundant attributes are removed you get a subset what is called primary key. A key (better: primary key) is the minimal subset of attributes that uniquely identifies the tuples of a relation, that is, you can't remove further attributes from this subset without losing the property of unique Identification. Therefore, the super superkey (like superman) is always the set of all attributes of a relation.

krs,
tesu
Last edited by tesuji : May 19th, 2008 at 3:08 am.
Reply With Quote  
Join Date: May 2008
Posts: 16
Reputation: mertucci is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
mertucci mertucci is offline Offline
Newbie Poster

Re: What is the diffrence between Key and Superkey how can we understand ? help me

  #3  
May 19th, 2008
thanks bro
Reply With Quote  
Join Date: Apr 2008
Posts: 295
Reputation: tesuji is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 41
tesuji tesuji is offline Offline
Posting Whiz in Training

Re: What is the diffrence between Key and Superkey how can we understand ? help me

  #4  
May 21st, 2008
Originally Posted by tesuji View Post
...If all redundant attributes are removed you get a subset what is called primary key...

I have to make an extension:
Sometimes there are more than one superkey of a relation. In such case also all redundant attributes have to be removed and the remaining subsets of attributes are then called CANDIDATE KEYS. Now one can freely select ONE of these candidate keys to identify the relation's tuples. In such case, this selected subset is called PRIMARY KEY.

krs,
tesu
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Database Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Database Design Forum

All times are GMT -4. The time now is 7:20 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC