SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Google Workspace: Storage Quota Alerts

Unsolved

Google Workspace enterprise billing monitors customer storage quotas. Write a SQL query to identify organizations whose collective member storage usage exceeds their allocated `quota_gb`. For each exceeding organization, return the `org_id`, `org_name`, `quota_gb`, `total_used_gb` (sum of member usage rounded to 1 decimal), and `excess_gb` (total used minus quota, rounded to 1 decimal). Sort the results by `excess_gb` in descending order, then by `org_id` in ascending order. Note: Organizations whose members consume exactly their quota (0 excess) are not exceeding and should not be included.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Google

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM organizations
Full source dataset
5 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine