Bird
0
0

Which of the following is the correct way to name a primary key constraint on a table named Employees?

easy📝 Syntax Q12 of 15
SQL - Table Constraints
Which of the following is the correct way to name a primary key constraint on a table named Employees?
APrimaryKey_Employees
BPK_Employees
CEmployees_PK
DKeyPrimary_Employees
Step-by-Step Solution
Solution:
  1. Step 1: Identify the common prefix for primary key constraints

    Primary key constraints commonly start with PK_.
  2. Step 2: Combine prefix with table name

    The convention is prefix + underscore + table name, so PK_Employees is correct.
  3. Final Answer:

    PK_Employees -> Option B
  4. Quick Check:

    Primary key prefix = PK_ [OK]
Quick Trick: Use PK_ prefix plus table name for primary keys [OK]
Common Mistakes:
MISTAKES
  • Using full words like PrimaryKey_ instead of PK_
  • Placing prefix after table name
  • Mixing words in wrong order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes