SQL Practice Logo

SQLPractice Online

Level 6 - ExpertQuery-Based Questionsm2 performance schema

Query: Top Tenants by 7-Day Write Volume

Write SQL for top 5 tenants by write events in last 7 days from `tenant_events(tenant_id, event_type, created_at)` where write events are INSERT/UPDATE/DELETE.