← PracticeAggregates, GROUP BY and HAVING
JuniorTasks 374
- Spending by category: Mar–May 2025, from 500Банк
- Accounts: 16+ expenses in the category groceriesБанк
- Category transfer by month: Apr–Jul 2025Банк
- Merchants: checks from 600, at least 425 transactionsБанк
- Accounts by type/currency since Apr 2023: active, from 25Банк
- Categories from 200 accounts: 2 mo. from March 1, 2025Банк
- Clients by segment and city: from 10, born since 1970Банк
- Top 5 merchants by spending, from 600 per purchaseБанк
- Customers with 2+ 'cancelled' orders, since Jun 2025Интернет-магазин
- Categories: from 200 items, quantity from 2Интернет-магазин
- 'shipped' orders by month: from 25 per monthИнтернет-магазин
- Cities with 18+ customers: new (since May 2025)Интернет-магазин
- Average price by category above 2000 (price 500–3000)Интернет-магазин
- 'shipped' orders by month, Mar–Aug 2025Интернет-магазин
- shipped/new orders by city: from 6, since Apr 2025Интернет-магазин
- Busy restaurants: from 9 deliveries, Mar–Apr 2025Доставка еды
- Courier tips: 4–12 km, from 15 tips, since Jul 2025Доставка еды
- Delivery time: Санкт-Петербург, 2 ≤ km < 8, since May 2025Доставка еды
- Cuisines: from 10 customers, 'cancelled', May–Aug 2025Доставка еды
- Revenue of restaurant 30 by monthДоставка еды
- Top 5 restaurants by revenue: Jul–Nov 2025, from 3 kmДоставка еды
- ios events, TR: by type, since May 2025События приложения
- Days with activity: checkout events, from 12 per dayСобытия приложения
- Purchases of UA users by month: from 500, Feb–May 2025События приложения
- Acquisition sources RU: total and web, since Feb 2025События приложения
- TR signups by month and platform: Mar–Apr 2025, from 5События приложения
- Buyers: 3+ purchases from 1000, since Mar 2025События приложения
- Avg salary > 160000: salary ≥60000, hired before Jan 2025Сотрудники
- Positions, departments 22–25: 2+ people, salary from 110000Сотрудники
- Hires by month: departments 5–14, salary from 80000Сотрудники
- Depts 10–24: dismissed ≥1, salary ≥50000, since Jan 2025Сотрудники
- Employees with 3+ salary changes since July 1, 2025Сотрудники
- Departments, 5+ positions: from 50000, hired since Jul 2024Сотрудники
- Departments: payroll from 400000, hired before Jul 2025Сотрудники
- Spending by category: Jun 2025, from 1000Банк
- Accounts: 10+ expenses in the category groceriesБанк
- Category transfer by month: Apr–Aug 2025Банк
- Merchants: checks from 2000, at least 250 transactionsБанк
- Accounts by type/currency since Jul 2023: closed, from 10Банк
- Categories from 250 accounts: 2 mo. from February 1, 2025Банк
- Clients by segment and city: from 4, born before 1960Банк
- Top 4 merchants by spending, from 300 per purchaseБанк
- Customers with 3+ 'shipped' orders, since Feb 2025Интернет-магазин
- Categories: from 50 items, quantity from 4Интернет-магазин
- 'cancelled' orders by month: from 6 per monthИнтернет-магазин
- Cities with 21+ customers: old (before Mar 2024)Интернет-магазин
- Average price by category above 2100 (price 1000–3500)Интернет-магазин
- 'shipped' orders by month, May–Oct 2025Интернет-магазин
- paid/cancelled orders by city: from 12, since Apr 2025Интернет-магазин
- Busy restaurants: from 21 deliveries, May–Jun 2025Доставка еды