Difficulty: Easy
Correct Answer: All of the above.
Explanation:
Introduction / Context:
Modern relational databases provide rich integrity controls so that correctness does not rely solely on application code. Using built-in constraints shrinks bug surface area and improves data quality by design. This question verifies recognition of common DBMS-enforced controls.
Given Data / Assumptions:
Concept / Approach:
Defaults fill in values when none are provided; domain constraints limit values via CHECK or enumerated types; NOT NULL ensures presence. These complement primary/foreign keys and unique constraints, forming a comprehensive integrity layer.
Step-by-Step Solution:
Verification / Alternative check:
Documentation for PostgreSQL, Oracle, MySQL, and SQL Server includes DEFAULT, CHECK, and NOT NULL constraints as first-class features.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
All of the above.
Discussion & Comments