Hello,
Can you give me a plain description of the difference between Composite Keys
and Primary and Secondary keys?
I thank you for taking time to help me.
Any key can be composite (i.e. made up by more than one column) or not (i.e. made up by only one column).
A secondary key (best: a candidate key) is a key (composite or not) which is not guaranteed to be unique for every
instance of the table; that means: in this moment each row in the table contains different values in the column(s)
making up the key, but in the future maybe the table will contain one or more rows with identical values in the
column(s) making up the key.
A primary key is a key (composite or not) which is guaranteed to be unique for every instance of the table; that means
the table will NEVER contain rows with identical values in the column(s) making up the key.
I hope plain enough ...
Vincenzo Turturro
Certificato Eucip Core Level
ITA 0000-002299 del 14/05/2007