PostgreSQL - JSON and JSONBWhich advantage does JSON support in PostgreSQL provide over traditional relational columns?AIt enforces strict schema on data.BIt disables indexing on data.CIt allows storing nested and varying data structures.DIt prevents data duplication automatically.Check Answer
Step-by-Step SolutionSolution:Step 1: Compare JSON and relational columnsRelational columns require fixed schema; JSON can store nested, varying structures.Step 2: Identify JSON flexibility benefitJSON allows storing complex, nested data without predefined schema.Final Answer:It allows storing nested and varying data structures. -> Option CQuick Check:JSON advantage = Nested, flexible data [OK]Quick Trick: JSON stores nested data unlike fixed relational columns [OK]Common Mistakes:Assuming JSON enforces strict schemaThinking JSON prevents duplication automaticallyBelieving JSON disables indexing
Master "JSON and JSONB" in PostgreSQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PostgreSQL Quizzes Aggregate Functions and GROUP BY - GROUPING SETS for multiple groupings - Quiz 5medium Aggregate Functions and GROUP BY - GROUP BY single and multiple columns - Quiz 8hard Aggregate Functions and GROUP BY - Array aggregation with ARRAY_AGG - Quiz 7medium Common Table Expressions - Why CTEs matter in PostgreSQL - Quiz 15hard Full-Text Search - Search configuration and languages - Quiz 4medium JSON and JSONB - Indexing JSONB with GIN - Quiz 13medium Joins in PostgreSQL - LATERAL join for correlated subqueries - Quiz 13medium Set Operations and Advanced Queries - Conditional INSERT with ON CONFLICT - Quiz 15hard Subqueries in PostgreSQL - Subqueries with EXISTS - Quiz 3easy Window Functions in PostgreSQL - PARTITION BY for grouping windows - Quiz 14medium