About the “Daily Active Workspaces & Action Frequency” SQL Problem
Business Scenario
Product analytics wants to evaluate engagement depth across organization subscription plans. They need to count how many distinct workspaces are active and determine the average actions performed per active workspace.
Expected Output & Criteria
Plan tiers showing total events, unique active workspaces, and events per workspace.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE app_events (
event_id INT PRIMARY KEY,
workspace_id INT NOT NULL,
subscription_tier VARCHAR(30) NOT NULL,
event_action VARCHAR(50) NOT NULL
);Target SQL Clauses & Operators
Want more Aggregations practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.