Difficulty: Easy
Correct Answer: Default value
Explanation:
Introduction / Context:
Defaults improve data consistency by supplying a value when inserts omit a column. For monetary fields, setting a sensible default can streamline data entry and ensure predictable behavior across applications and ETL jobs.
Given Data / Assumptions:
Concept / Approach:
The default value column property supplies an automatic value when an INSERT omits the column. In SQL, you define it as DEFAULT 10000. It does not enforce that only 10,000 is allowed; it simply initializes the value. Data type still needs to be appropriate (for example, NUMERIC(12,2)), and constraints can further limit ranges or sign.
Step-by-Step Solution:
Verification / Alternative check:
Select after insert and confirm the default value appears. Override by explicitly specifying a different amount in the INSERT and confirm it respects the provided value.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming DEFAULT applies to updates—defaults are only used when the column is omitted in INSERT, not when it is set to NULL unless you also forbid NULLs.
Final Answer:
Default value
Discussion & Comments