i am confused in to keys in Database Managment System.as there are many partially questions...but this one is a good combined question.that's why i am posting here . Confusion Among SUPER KEY,KEY,PRIMARY KEY,ALTERNATE KEY,CANDIDATE KEY,MINIMAL KEY this is what i understand about it.
SUPER KEY : attribute or set of attribute which can identify a tupple uniquely .
Candidate key : set of all SUper keys..
Key : A single key from set of candidate keys which is minimal ( minimum attributes are there )
Primary key : A minimal key from the set of candidate keys..
Alternate key : set of all candidate keys except primary key
Foreign key. : i know it very well it's tough to mention all the things for it..
but i have confusion among superkey , key , candidate key , Primary key , Alternate key .. (add any key if remaining) all the definitions are okey?? for ER model definitions of these keys are different than definitions in Relational Model?
Can you please give your answer with example.?a single table having these all keys.!! Thanks...!!