← PracticeAggregates, GROUP BY and HAVING
JuniorTasks 374
- Category entertainment by month: Apr–Oct 2025Банк
- Merchants: checks from 300, at least 400 transactionsБанк
- Accounts by type/currency since Apr 2023: closed, from 15Банк
- Categories from 300 accounts: 3 mo. from July 1, 2025Банк
- Clients by segment and city: from 15, born since 1960Банк
- Top 7 merchants by spending, from 2000 per purchaseБанк
- Customers with 2+ 'shipped' orders, since Feb 2025Интернет-магазин
- Categories: from 155 items, quantity from 2Интернет-магазин
- 'paid' orders by month: from 30 per monthИнтернет-магазин
- Cities with 22+ customers: new (since Sep 2024)Интернет-магазин
- Average price by category above 1400 (price 200–2500)Интернет-магазин
- 'cancelled' orders by month, May–Oct 2025Интернет-магазин
- shipped/cancelled orders by city: from 10, since Apr 2025Интернет-магазин
- Busy restaurants: from 12 deliveries, May–Jun 2025Доставка еды
- Courier tips: 2–12 km, from 5 tips, since Jul 2025Доставка еды
- Delivery time: Санкт-Петербург, 1 ≤ km < 4, since Jun 2025Доставка еды
- Cuisines: from 120 customers, 'delivered', May–Aug 2025Доставка еды
- Revenue of restaurant 26 by monthДоставка еды
- Top 6 restaurants by revenue: Mar–Jun 2025, from 1 kmДоставка еды
- ios events, UA: by type, since Feb 2025События приложения
- Days with activity: view_item events, from 44 per dayСобытия приложения
- Purchases of TR users by month: from 2000, Feb–Apr 2025События приложения
- Acquisition sources KZ: total and android, since Apr 2025События приложения
- KZ signups by month and platform: Mar–Apr 2025, from 5События приложения
- Buyers: 4+ purchases from 2000, since Feb 2025События приложения
- Avg salary > 180000: salary ≥60000, hired before Jan 2025Сотрудники
- Positions, departments 22–25: 3+ people, salary from 90000Сотрудники
- Hires by month: departments 5–14, salary from 100000Сотрудники
- Depts 10–24: dismissed ≥1, salary ≥90000, since Mar 2025Сотрудники
- Employees with 4+ salary changes since January 1, 2023Сотрудники
- Departments, 5+ positions: from 80000, hired since Jul 2023Сотрудники
- Departments: payroll from 500000, hired before Jul 2025Сотрудники
- Spending by category: Sep–Oct 2025, from 150Банк
- Accounts: 10+ expenses in the category transportБанк
- Category health by month: Apr–Aug 2025Банк
- Merchants: checks from 2000, at least 550 transactionsБанк
- Accounts by type/currency since Jan 2024: closed, from 30Банк
- Categories from 140 accounts: 1 mo. from March 1, 2025Банк
- Clients by segment and city: from 15, born before 1980Банк
- Top 4 merchants by spending, from 2000 per purchaseБанк
- Customers with 4+ 'shipped' orders, since Feb 2025Интернет-магазин
- Categories: from 45 items, quantity from 4Интернет-магазин
- 'cancelled' orders by month: from 9 per monthИнтернет-магазин
- Cities with 20+ customers: new (since Mar 2025)Интернет-магазин
- Average price by category above 2100 (price 200–3500)Интернет-магазин
- 'new' orders by month: orders and customers, Apr–Jul 2025Интернет-магазин
- shipped/new orders by city: from 12, since Feb 2025Интернет-магазин
- Busy restaurants: from 24 deliveries, Apr–May 2025Доставка еды
- Courier tips: 2–14 km, from 15 tips, since Mar 2025Доставка еды
- Delivery time by vehicle: Казань, 2 ≤ km < 8, since Mar 2025Доставка еды