English

If a table which has one Primary key and two alternate keys. How many Candidate keys will this table have? - Computer Science (Python)

Advertisements
Advertisements

Question

If a table which has one Primary key and two alternate keys. How many Candidate keys will this table have? 

Options

  • 1

  • 2

  • 3

  • 4

MCQ

Solution

3

Explanation:

  1. Candidate Keys are the smallest set of attributes that can uniquely identify a row in a table.
  2. In your case: 
    1. Primary Key: A primary key is always a candidate key.
    2. Alternate Keys: These candidate keys are not picked as the primary key.
  3. Thus, the table will have 3 candidate keys: 1 Primary Key, 2 Alternate Keys.
shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×