SQL - Table ConstraintsWhich constraint ensures that a column cannot have duplicate values?ANOT NULLBDEFAULTCCHECKDUNIQUECheck Answer
Step-by-Step SolutionSolution:Step 1: Review constraint typesUNIQUE prevents duplicate values; NOT NULL prevents empty values; CHECK enforces conditions; DEFAULT sets default values.Step 2: Match constraint to duplicate preventionOnly UNIQUE ensures no duplicates in a column.Final Answer:UNIQUE -> Option DQuick Check:Duplicate prevention = UNIQUE [OK]Quick Trick: UNIQUE stops duplicate entries in a column [OK]Common Mistakes:MISTAKESConfusing NOT NULL with UNIQUEThinking CHECK prevents duplicatesAssuming DEFAULT affects duplicates
Master "Table Constraints" in SQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More SQL Quizzes GROUP BY and HAVING - GROUP BY with aggregate functions - Quiz 2easy GROUP BY and HAVING - GROUP BY multiple columns - Quiz 8hard GROUP BY and HAVING - Why grouping is needed - Quiz 15hard INNER JOIN - Why joins are needed - Quiz 1easy LEFT and RIGHT JOIN - LEFT JOIN execution behavior - Quiz 15hard Subqueries - Subquery in WHERE clause - Quiz 9hard Subqueries - Subquery with IN operator - Quiz 4medium Subqueries - Scalar subquery in SELECT - Quiz 12easy Table Relationships - Many-to-many with junction tables - Quiz 13medium Views - View as a saved query mental model - Quiz 2easy