๐Ÿ“ข Too many exams? Donโ€™t know which one suits you best? Book Your Free Expert ๐Ÿ‘‰ call Now!

  • google app store apple app store
  • โœ–

      Question

      Which of the following correctly describes a 'primary

      key' in a relational database?
      A A key that can have NULL values Correct Answer Incorrect Answer
      B A key that references a column in another table Correct Answer Incorrect Answer
      C A key that uniquely identifies each record in a table and cannot be NULL Correct Answer Incorrect Answer
      D A key used only for indexing purposes Correct Answer Incorrect Answer
      E A key that can have duplicate values if combined with another column Correct Answer Incorrect Answer

      Solution

      A primary key enforces entity integrity โ€” it must be unique for each row and cannot contain NULL values. A foreign key references a primary key in another table (referential integrity). A composite key uses multiple columns together. A candidate key is any column that could serve as a primary key.

      Practice Next

      Relevant for Exams:

      ask-question