Post

Key

βœ… Key

identify the tuples(rows) uniquely in the table

πŸ”‘ Candidate Key

minimal set to uniquely identify a tuple every table must have at least single candidate key can have multiple candidate keys can be null

  • student number
  • student phone number
  • student name

πŸ”‘ Primary Key

one of many candidate keys only one per table can never be null

πŸ”‘ Super Key

set of attirbutes to uniquely identify a tuple

  • set {student number, phone number, name}

πŸ”‘ Alternate Key

any other candidate key except primary key

πŸ”‘ Foreign key

key refereneced from another table

This post is licensed under CC BY 4.0 by the author.