About the “Dense Ranking of Workspaces by License Seat Saturation” SQL Problem
Business Scenario
Customer Success teams identify enterprise accounts ripe for expansion by ranking workspaces within each subscription tier based on their active user seat utilization percentage.
Expected Output & Criteria
Dense rank of SaaS accounts by license saturation within tier.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMCREATE TABLE saas_workspaces (
workspace_id VARCHAR(16) PRIMARY KEY,
org_name VARCHAR(100) NOT NULL,
plan_tier VARCHAR(20) NOT NULL,
active_seats INT NOT NULL,
allocated_seats INT NOT NULL
);Target SQL Clauses & Operators
Want more Window Functions practice?
Explore the full syllabus of 18 exercises and syntax guides.