About the “Querying Nested JSONB Metadata with #>> Path Extraction” SQL Problem
Business Scenario
Cloud infrastructure error logs store diagnostic traces in deeply nested JSONB structures. SREs need to extract the microservice name and root error code from the JSON path `{error, details, code}`.
Expected Output & Criteria
Extracted service error metrics for all fatal incidents.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE service_incidents (
incident_id INT PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
incident_data JSONB NOT NULL
);Target SQL Clauses & Operators
#>>WHEREORDER BY
Want more Business Analytics practice?
Explore the full syllabus of 14 exercises, syntax guides, and interview pitfalls.