Course
Simulator
More
Search
⌘
K
Premium
Log in
SQL Simulator Tasks
Selected SQL exercises that are close to real professional tasks
Easy
49
Medium
141
Hard
49
Tasks from interviews
All
139
Amazon
3
Booking.com
3
Facebook
2
Microsoft
2
OpenAI
2
Twitter
1
TikTok
1
Spotify
1
Tesla
1
Uber
1
Zalando
4
Delivery Hero
4
Dynatrace
4
Entain
4
N26
4
Glovo
4
Cabify
4
BBVA
4
Santander
4
Inditex
4
Amadeus
4
eDreams ODIGEO
4
Wallapop
4
SAP
3
Wargaming
3
Klarna
2
EPAM
2
BMW
1
Revolut
1
VK
5
Alfa-Bank
4
DomClick
4
Yandex
4
Sberbank
3
SkyPro
3
T-Bank
3
Cian
3
Rostelecom
3
Tochka
3
Kaspi
3
MTS
2
Samokat
2
Beeline
2
GlowByte
2
Lenta
2
IVI
2
Kolesa Group
2
Dodo Brands
1
Uchi.ru
1
Bank Otkritie
1
Ozon
1
Sber
1
Finstar Financial Group
1
More
Aggregate functions
156
GROUP BY
130
JOIN
125
Sorting
95
Date functions
68
Subqueries
63
Window functions
33
HAVING
30
Data analysis
24
Math functions
21
Time series
21
Ranking
19
String functions
18
Find the bug
15
Pattern matching
11
Indexes
4
INSERT
3
DELETE
3
UPDATE
2
VIEW
2
Recursive queries
2
More
Default
1. Names of all people
Air travels
3. Trips from Moscow
Air travels
139. Big Countries
Interview task of
Amazon
7. Planes to Moscow
Air travels
199. Two people on the boundary dropped out of the bonus list
Company
Find the bug
4. Names ending in "man"
Air travels
38. Number of students named Anna
Schedule
5. Number of trips on TU-134
Air travels
86. Unfinished parts
Interview task of
Tesla
74. Internet availability in the room
Airbnb
79. Price with 10% discount
Airbnb
168. Average Bet per Betting Type
Interview task of
Entain
189. Nations with the Most Battles
Interview task of
Wargaming
13. Full namesakes
Air travels
198. The whole department headcount is counted instead of the needed part
Company
Find the bug
6. Companies that flew on Boeing
Air travels
194. The report lost employees without orders
Company
Find the bug
14. Cities Bruce Willis visited
Air travels
82. Facebook pages with no likes
Interview task of
Facebook
43. Physical Culture teachers
Schedule
12. Number of passengers on flights
Air travels
16. Passengers by number of flights
Air travels
75. Students born in May
Schedule
66. Rooms with all amenities
Airbnb
164. Average Response Time per Application
Interview task of
Dynatrace
30. Flight load
Air travels
156. Monthly Average Product Rating
Interview task of
Zalando
73. Rooms rented an odd number of times
Airbnb
188. Average Bug Resolution Time per Project
Interview task of
EPAM
179. Revenue per City
Interview task of
Booking.com
11. Passengers with the longest name
Air travels
42. Time at school from 2nd to 4th subject
Schedule
70. Categorization of housing by price
Airbnb
76. User status: owner/tenant
Airbnb
45. Most used classrooms
Schedule
69. Earnings of room owners
Airbnb
46. Classes of teacher Krauze
Schedule
196. The list of employees without subordinates came out empty
Company
Find the bug
67. Departure and arrival time
Air travels
197. The salary review list picked up extra people
Company
Find the bug
131. Number of orders by each registered customer
Interview task of
Facebook
49. Percentage of students in 10 A
Schedule
200. Customers with no purchases disappeared from the report
Company
Find the bug
60. Teachers of 11th grades
Schedule
68. Last room tenant
Airbnb
37. Age of the youngest student
Schedule
84. Registration confirmation rate
Interview task of
TikTok
8. Flights from Paris
Air travels
161. Average Delivery Time per City
Interview task of
Delivery Hero
50. Percentage of students born in 2000
Schedule
10. Departures at a specific time
Air travels
174. Churn-Risk Customers
Interview task of
N26
44. Maximum age in 10th grades
Schedule
56. Delete flights from Moscow
Air travels
DELETE
53. Change name to "Andie Anthony"
Family
UPDATE
51. Add product "Cheese"
Family
INSERT
57. Reschedule for 30 minutes
Schedule
UPDATE
52. Add product type "auto"
Family
INSERT
54. Delete Quincey family members
Family
DELETE
55. Delete companies with the fewest flights
Air travels
DELETE
77. Create "People" view
Schedule
VIEW
80. Create "Verified_Users" view
Airbnb
VIEW
128. Create index on price
Airbnb
145. Composite index with sorting
Schedule
65. Rating of rented rooms
Airbnb
87. Top 2 active users
Interview task of
Microsoft
187. Highest-Paid Project per Month of 2022
Interview task of
EPAM
147. Expand reservation date ranges
Airbnb
195. The dashboard overstates department headcount
Company
Find the bug
177. Top-3 Spenders per Region
Interview task of
Klarna
88. Third user transaction
Interview task of
Uber
201. The wrong employees ended up among department leaders
Company
Find the bug
169. Top-10 PC Gamers by Total Bet Spend
Interview task of
Entain
171. Weekly Bet Dynamics (LAG)
Interview task of
Entain
176. Top-10 Spenders by Total Purchase Amount
Interview task of
Klarna
85. Top 5 artists in the charts
Interview task of
Spotify
2. Names of all airlines
Air travels
41. Start of the fourth lesson
Schedule
59. Users with a Belarusian number
Airbnb
202. Departments repeat in the list
Company
Find the bug
63. Sorting by student names
Schedule
78. Users with hotmail.com email
Airbnb
36. Students living on Pushkin street
Schedule
62. Popularity of 2nd level domains
Airbnb
142. Coding Speed Improvement
Interview task of
OpenAI
72. Average booking price
Airbnb
143. Minimum Error Reduction
Interview task of
OpenAI
172. Spending by Merchant Category
Interview task of
N26
9. Companies with flights from Vladivostok
Air travels
28. Flights from Rostov to Moscow
Air travels
34. Number of 10th grades
Schedule
39. Number of students in 10 B grade
Schedule
35. Classrooms used on September 2, 2019
Schedule
155. License Utilization Overflow
Interview task of
SAP
40. Subjects of Romashkin P.P.
Schedule
29. Names of passengers flying to Moscow
Air travels
47. Krauze's classes on August 30, 2019
Schedule
48. Class occupancy
Schedule
22. Names of all mothers
Family
31. Quincey family members
Family
140. First Player Login
Interview task of
Amazon
153. Most Active Reviewer
Interview task of
SAP
158. Inventory State Breakdown
Interview task of
Zalando
178. Loyal Customers by Order Count and Spend
Interview task of
BMW
181. Cancellation Rate per City
Interview task of
Booking.com
19. Who bought potatoes
Family
15. Steve Martin's arrival in London
Air travels
61. Rooms reserved on the 12th week of 2020
Airbnb
64. Number of bookings by month
Airbnb
154. Top Consultant by Average Rating in February
Interview task of
SAP
160. Top-5 Customers in Last 30 Days
Interview task of
Delivery Hero
167. Active Annual Subscriptions
Interview task of
Dynatrace
180. Average Length of Stay per Property Type
Interview task of
Booking.com
191. Players Active on Two Consecutive Days
Interview task of
Wargaming
20. Spending on entertainment
Family
81. Histogram of tweets for 2022
Interview task of
Twitter
113. Supercloud customers
Interview task of
Microsoft
21. Products bought more than once
Family
157. Average Items Per Order
Interview task of
Zalando
170. Average Bet and Total Wins per Active Player
Interview task of
Entain
71. Percentage of active users
Airbnb
163. Loyal Berlin Pizza Customers
Interview task of
Delivery Hero
144. Composite index on home_type and price
Airbnb
146. Functional index on subject
Schedule
58. Add a review from George Clooney
Airbnb
INSERT
33. Average price of caviar
Family
166. Server Risk Score Under Peak Load
Interview task of
Dynatrace
173. Monthly Active Users (MAU)
Interview task of
N26
190. Player Cohorts by Battle Count
Interview task of
Wargaming
17. Family expenses in 2005
Family
24. Who spent how much in June 2005
Family
141. Games Played So Far
Interview task of
Amazon
27. Spending by product group in 2005
Family
159. Top Category by Monthly Revenue
Interview task of
Zalando
162. Monthly Avg Delivery Time (window functions)
Interview task of
Delivery Hero
165. CPU Sample with Daily Server Baselines
Interview task of
Dynatrace
32. Average age of people
Family
175. Running Balance over Transactions
Interview task of
N26
183. 7-Day Moving Average of Daily Spend
Interview task of
Revolut
18. The oldest person
Family
23. Most expensive delicacy
Family
25. Goods not purchased in 2005
Family
26. Groups of goods not purchased in 2005
Family
203. A user was credited with someone else's bookings
Airbnb
Find the bug
204. The February report lost a booking
Airbnb
Find the bug
205. Department shares add up to 94%
Company
Find the bug
206. The raise list is missing people
Company
Find the bug
207. Two departments split the whole company revenue
Company
Find the bug
208. The falling sales report picked up extra rows
Company
Find the bug
209. Delivery Peak Hours
Interview task of
Glovo
210. Late Delivery Rate by City
Interview task of
Glovo
211. Courier Distance in March
Interview task of
Glovo
212. Peak Hour in Each City
Interview task of
Glovo
213. Surge-Priced Rides
Interview task of
Cabify
214. Cancellation Rate by City
Interview task of
Cabify
215. Driver Utilization
Interview task of
Cabify
216. Rides Without a Matching Driver
Interview task of
Cabify
217. Card Spending by Category in March
Interview task of
BBVA
218. Customers With No Activity in June
Interview task of
BBVA
219. Account Statement: Cards and Transfers
Interview task of
BBVA
220. Balance by Product Type
Interview task of
BBVA
221. Accounts Over Their Overdraft Limit
Interview task of
Santander
222. Second-Largest Charge per Customer
Interview task of
Santander
223. Rolling 7-Day Charges
Interview task of
Santander
224. Month-over-Month Change in Charges
Interview task of
Santander
225. Q1 Sales by Category
Interview task of
Inditex
226. Stores Below Target
Interview task of
Inditex
227. Sell-Through by Category
Interview task of
Inditex
228. Products Not Sold in a Region
Interview task of
Inditex
229. Busiest Routes
Interview task of
Amadeus
230. Average Departure Delay per Airline
Interview task of
Amadeus
231. Daily Cancellation Rate per Airline
Interview task of
Amadeus
232. Highest Average Booking Price per Month
Interview task of
Amadeus
233. Revenue by Market
Interview task of
eDreams ODIGEO
234. A/B Test Conversion
Interview task of
eDreams ODIGEO
235. Booking Funnel by Market
Interview task of
eDreams ODIGEO
236. Repeat Customers
Interview task of
eDreams ODIGEO
237. Sold Within a Week
Interview task of
Wallapop
238. Repeat Sellers by City
Interview task of
Wallapop
239. Median Time to Sell by Category
Interview task of
Wallapop
240. Chat-to-Sale Conversion
Interview task of
Wallapop
99. Income from female audience
Interview task of
VK
106. Revenue by course for the last month
Interview task of
SkyPro
184. VIP Users by Transaction Count
Interview task of
Kaspi
97. Operating warehouses by city
Interview task of
Samokat
109. Country of the city of Salzburg
Interview task of
DomClick
129. Contract numbers for companies with SBER in name
Interview task of
GlowByte
110. Cities in the Bavaria region
Interview task of
DomClick
111. Population of each region
Interview task of
DomClick
133. Projects that were never worked on
Interview task of
Rostelecom
98. Highest salary by department
Interview task of
VK
103. Salary higher than the manager's
Interview task of
Sberbank
115. Pilots over 45 on cargo planes
Interview task of
T-Bank
149. Top 5 series by number of viewers
Interview task of
IVI
125. Works published more than 5 times
Interview task of
Cian
117. Order delivery time
Interview task of
Ozon
104. Maximum salary in the department
Interview task of
Sberbank
93. Average age of Smartwatch buyers
Interview task of
Alfa-Bank
100. Number of male users
Interview task of
VK
96. Samokat products with a shelf life of at most 7 days
Interview task of
Samokat
123. Number of tasks for an employee
Interview task of
Finstar Financial Group
112. Average spending in Hamburg
Interview task of
DomClick
94. Buyers of Laptop and Monitor in March
Interview task of
Alfa-Bank
89. Spending for the last 30 days
Interview task of
MTS
124. Days in 2022 with more than 10 iPhone owners
Interview task of
MTS
107. Average course rating
Interview task of
SkyPro
83. Clients from Moscow with a balance greater than 20000
Interview task of
Alfa-Bank
101. User's first order
Interview task of
VK
116. Top 3 pilots by number of passengers
Interview task of
T-Bank
192. Search-to-View Conversion: Filtered vs Not
Interview task of
Kolesa Group
120. Running total of transactions
Interview task of
Yandex
121. Number of second contracts
Interview task of
Sber
114. Second pilots to New York
Interview task of
T-Bank
105. Employees without a manager in the department
Interview task of
Sberbank
126. Copies not linked to any edition
Interview task of
Cian
130. Number of contracts per company
Interview task of
GlowByte
135. Video viewing statistics by day
Interview task of
Lenta
136. Users who watched video every day in January
Interview task of
Lenta
137. Users with multiple cards
Interview task of
Yandex
132. Number of projects in progress per developer
Interview task of
Rostelecom
95. Clients with a purchase amount greater than 9200
Interview task of
Alfa-Bank
186. Top-5 Customers by Orders in a Month
Interview task of
Kaspi
92. Category with the most codes
Interview task of
Bank Otkritie
134. Projects with all developers participated
Interview task of
Rostelecom
91. Students who solved more than 50% of tasks
Interview task of
Uchi.ru
108. Find those who did not complete the course in 30 days
Interview task of
SkyPro
127. User last 3 borrowed works and total times taken
Interview task of
Cian
148. Views by monetization type in February
Interview task of
IVI
150. Clients with foreign currency accounts by month
Interview task of
Tochka
151. Monthly count of clients with an open account
Interview task of
Tochka
185. Add-to-Cart Conversion Rate (CTR)
Interview task of
Kaspi
102. Average number of transactions in 72 hours
Interview task of
VK
118. Top 5 "talkative" subscribers
Interview task of
Beeline
119. Top 5 drivers by orders
Interview task of
Yandex
122. Client's last device model
Interview task of
Beeline
138. Average call quality score
Interview task of
Yandex
152. Commission for outgoing payments
Interview task of
Tochka
193. View-to-Contact Conversion by Category
Interview task of
Kolesa Group
90. 30-day active base
Interview task of
Dodo Brands
Increase your chances of finding a job
Solve tasks in the trainer and get a certificate!
SQL practice tracks
Themed task collections for structured SQL practice
Python Academy
Interactive Python Course