SQL
Arena
SQL Problems Catalog from Top Companies
Over-the-Counter Medications
Number of Berlin Customers
Platinum Loyalty Program Members
Number of Long-Haul Flights
Fitness Clubs in Berlin
Number of Premium Members
Five-Star Hotels in the Chain
Number of Rooms for More Than Two People
Rock Artists in the Festival Database
Number of Festivals in 2024
Endangered and Critically Endangered Species
Animal Count in the Africa Savanna Section
Customers with Unexpired Applications
Medications Costing More Than 6 Euros
Product Showcase: Rename the Columns
Customer card: projection with aliases
Products from two warehouses
Catalog Without Archive
Products Under 1000 Rubles
Delivered Orders
Warehouse shelf: SKU, weight and price under readable names
Drop Unrated Reviews, Replace Empty Comments
Kotomarket showcase: three categories with IN
Unique category-supplier pairs
Kotomarket showcase: price tiers and the top 5
Unique Category–Supplier Pairs in the Mid Price Range
Kotomarket: status labels for orders of customers starting with "А"
Paid Events Across Cities
Which Platform Converts Best
What Cities View and Buy
Large Order or Regular
Numeric Codes Without Failures
Platforms That Saw a Payment
A Leaner Event Log
Purchases Without Internal Details
Sessions Without Purchase Counts
One Row per Item
Items in Each Basket
A Basket in the Log
Platforms for the New Report
Inside Each Event Session
Sessions That Ran Long
Three Days in One Read
Weekdays in the Event Log
When Kotomarket Comes Alive
A Preview Without the Heavy Columns
The Three Largest Receipts
Unrecognized Name
Readings Through the Garbage
Faults in the Sensor Log
The Two Clocks at the Door
The City Inside the JSON
A day of faults: reading the whole log
User activity: views and purchases
Views and purchases per product
Events per day (ClickHouse)
Events per hour bucket (ClickHouse)
Event distribution by hour of day (ClickHouse)
Each user's set of products
Unique Product Count by User
Total revenue per user
Order count per user
Most expensive purchased product per user
Cheapest purchased product per user
Purchase sequence number per user
Median session duration by country
Median and average duration by device
Sessions per device
Bounce rate per device
Bounced vs engaged sessions per device
Distinct pages per user
Distinct countries per device
Number of distinct pages per user
Row counts by status code (ClickHouse)
Average latency per service
Min and max latency per service
Latency stats per log level
Success rate by payment method (ClickHouse)
Successful revenue by method (ClickHouse)
Overall payment-success summary (ClickHouse)
Tickets containing cat
Cities without Miami
Tickets with kotomarket.com domain
Phones containing +1
Names containing diacritics
Lines with 5xx HTTP status
Phones before a parenthesis
Tickets containing a time
Remove fragments in HTML tags
Phones with 11 digits
Tickets containing the word cat
Valid email addresses
Logs with error statuses
First order code
Dates in ISO format
Repeated word in tickets
Mask a card number
Count order codes
HTTP errors in nginx
Domains of splittable email addresses
Promo codes after the label
All Orders for One Customer
Order Count per Customer
What values import sent
When items is not an array
Payments from largest to smallest
Orders over $30
When error is null
Who is outside new_checkout
A foreign key with no index
Apply a Discount to Action Games
The feed of latest orders
Payments for an order
The latest payments
One customer's orders through the link
All the payments of an order
Where this product was sold
Pages with No Likes
Parts with Unfinished Assembly
Laptop and Mobile Views
Top 3 Cities by Completed Trades
Duplicate Job Listings
Most Active Message Senders in August 2022
Average Monthly Product Ratings
Difference Between Highest and Lowest Monthly Card Issuance
Average Items per Order from Compressed Data
Drug Sales by Manufacturer
Spare Data Center Capacity
Final Account Balances
Apple Pay and Other Payment Amounts
Signup Confirmation on the Next Day
Employees Who Earn More Than Their Managers
All Registered Fans
Names Ending in `man`
Number of Club Concerts
Concert Venue Types in Moscow
Trips Departing from Paris
Bands That Departed from Vladivostok
Fans with the Longest Full Names
Unique Fans at Each Concert
Oldest Club Member
Number of Cardiology Wards
Patients with Maple Ave in Their Address
Female Patients Named Mary
Patient Count in Ward CARD-B
Start Time of the 4th Slot
Appointment Duration from Slot 2 to Slot 4
Wards Where Dr. Bennett Has Seen Patients
Bennett's Appointments on August 30, 2019
Ward Occupancy
Delete Tours Departing from Moscow
Passengers with .by Email Addresses
Doctors Who Saw Patients in Neurology Wards
Patients in Alphabetical Order
Cabins with All Amenities
Tour Trip Schedule
Wi-Fi Availability in Cabins
Patients Born in May
Passengers with Hotmail Addresses
Facebook Pages with No Likes
Tesla Parts Awaiting Completion
Sent Message Counts by User
Total Account Balance per Client
Properties in Moscow
Cities with Properties
Pilot of the Flight with the Second-Highest Passenger Count
Average Driver Rating
Games Scoring More Than 100 Points
Actor–Director Pairs with at Least Three Collaborations
People and Their Addresses
Customers Who Have Never Placed an Order
Duplicate Email Addresses
Team Size for Each Employee
Unique Friend Request Pairs
Each Player's First Login Date
Each Player's First Device
Percentage of Immediate Deliveries
Number of Comments per Post
Total Quantity Sold by Product
Posts Reported on July 4, 2024
Swap the Sex Values for All Employees
Create the projects Table
Add a Test User to the Bug Tracker
Drop the departments Table
Seed Test Orders with Different Statuses
Add an Employee Email Column
Delete Old Audit Log Entries
Drop the salary Column from employees
Rename Column 'name' to 'full_name'
Index for Employee Name Searches
Create an Active Employees View
Customers who already ordered something
Customers who never placed an order
Find orders bigger than average
Products that ever sold
Products that nobody bought
Find the most expensive item
Customers from your top-buying country
Pull orders from Russian customers only
Cheapest pick in every category
Show every customer's order count
Save your first journal entry
Pin one note so it stays at the top
Pin every January note for the new year
Delete one note that's no longer needed
Spring cleaning — drop everything unpinned
Create a Users Table for a SaaS Project
Add a Phone Number Column to the Clients Table
Drop the Obsolete legacy_field Column
Create a Books Table with a Required Author Reference
Index for Faster Log-Level Filtering
Employees with Bonuses Below 1000
Customers Not Referred by Customer 2
Authors Who Viewed Their Own Articles
Follower Count by User
Classes with at Least Five Students
Fix Reversed Employee Sex Codes
Frequent Actor-Director Collaborations
Bank Customers with Balances Above 10000
Unique Leads and Partners by Date and Car Make
Total Daily Work Time by Employee
Calculate Special Employee Bonuses
Last Login per User in 2020
Users with Valid Email Addresses
Products with Valid Serial Numbers
Books with No Available Copies
Students Studying Three or More Subjects
Zombie Sessions Lasting More Than a Day
Products with Negative Stock
Filter Order Statuses Using a Single List
Idempotency Keys for Safe Retries
Application Settings with a Default Theme
Guest Orders Without a User Account
Guest-Safe Order Label
Order List with Guest Orders Last
Distinct Order and Subscription Statuses
Guest Orders: Missing User IDs as 0
Cancel All Pending Orders
Delete Canceled Orders
Increase Kitchen Product Prices by 10%
Restock Office Products
Event Log with Auto-Generated IDs
Create a Tickets Table with Restricted Statuses
Active Employees with Formatted Full Names
Customer Spending Over the Last 30 Days
Daily Video Views and Unique Viewers
Average Age of Smartwatch Buyers in 2024
Country Where Salzburg Is Located
Population by Region
Cities with More Than 80 Active Warehouses
Number of SKU Buyers on a Given Date
Price Categories Without CASE or IF
Revenue from Female Customers
Works with More Than Five Editions
Published Courses with Average Ratings and at Least 10 Reviews
Category with the Most OTP Entries
Daily Transaction Volume by Banking Product
Active Contract Version on March 15, 2024
Count Rows After DISTINCT on a GROUP BY Result
Skypro Revenue by Course for March 2024
Active Students on April 15, 2024
OTP Code Category Indicator
Average Family Income Difference: Even vs. Odd Borrower IDs
Time Gaps Between Track Plays
Online Store Session Start Flag
Orders from JSON Payloads
Hotel Guests from Nested JSON
Standardize Menu Text Capitalization
Extra Spaces That Break Shipment Routing
Patient Name on a Wristband
Monthly Sales Trends
Monthly Listening Hours
Parcel Scans After the Watermark
Store Delivery Scorecard
Second-Level Category Shelves
Pairs of Comparable Apartment Listings
Documentary Viewers
Which Marketplace Customers Need to Be Re-engaged?
Purchase Frequency in an Audiobook Service
Lab Orders with Pending Results
Telecom Subscriber Display Names
Wine Bar: Reservations Without Confirmation
Combined Delivery Leg Ledger
Watched Titles Without Duplicate Pairs
One-to-One and One-to-Many Relationships
Row Multiplication After a JOIN
Duplicate Parcel Registrations
Content Listings with Missing Required Values
Neobank Operating Cash Balance
From KYC Application to Approval
Each Customer's First App Activity
Streaming Subscription Cohort Calendar
Tasks
Tasks
1019
Mock
Interviews
173
AI
AI Mode
453
Premium
1,019 tasks
Easy
Medium
Hard
Expert
All
Unsolved
Solved
All
PG
MySQL
CH
BQ
Favorites
Filters
SQL
874
Bug fix
5
Quality
5
Refactor
11
Schema
18
Tx
26
Access
6
Performance
74