Skip to main content

Practice Arena

412 problems across 3 datasets

#TitleDifficulty
1List All Productseasy
2Customers from a Specific Stateeasy
3High-Value Completed Orderseasy
4Products in a Price Rangeeasy
5Search Products by Nameeasy
6Ten Most Recent Orderseasy
7Unique Customer Citieseasy
8Orders by Statuseasy
9Total Number of Orderseasy
10Total Revenue by Categoryeasy
11Average Order Valueeasy
12Orders Per Customereasy
13Highest and Lowest Priced Productseasy
14Categories with Many Productsmedium
15Monthly Order Countmedium
16Average Rating Per Productmedium
17Order Details with Customer Nameeasy
18Products with Category Nameseasy
19Customers Who Never Orderedmedium
20Order Items with Full Detailsmedium
21Orders with Payment and Shipping Statusmedium
22Customer Order Summarymedium
23Products Never Reviewedmedium
24Customers Who Reviewed Their Purchaseshard
25Products Priced Above Averagemedium
26High-Spending Customersmedium
27Most Expensive Product Per Categorymedium
28Customers Who Ordered from Every Categoryhard
29Products Ordered but Never Reviewedhard
30Orders Above Customer's Own Averagehard
31Rank Products by Price Within Categorymedium
32Customer Order Sequence Numbersmedium
33Running Total of Daily Revenuehard
34Compare Order Value to Previous Orderhard
35Dense Rank Customers by Total Spendinghard
36Monthly Revenue Report with CTEhard
37Revenue Pivot by Payment Methodhard
38Average Delivery Time by Carrierhard
39Top 3 Best-Selling Products Per Categoryhard
40Customer Cohort Analysis by First Purchase Monthhard
41Count Customers per Countryeasy
42Products Never Orderedeasy
43Average Order Value by Statuseasy
44Orders with Customer Nameseasy
45Distinct Shipping Carrierseasy
46Total Revenue per Product Categorymedium
47Customers with Multiple Orderseasy
48Payment Method Distributioneasy
49Products Above Average Priceeasy
50Monthly Order Counteasy
51Top 10 Spending Customerseasy
52Order Items with Discounts Appliedeasy
53Customers Who Never Left a Revieweasy
54Average Shipping Duration by Carriermedium
55Revenue Impact of Discountsmedium
56Rank Products by Revenue Within Categorymedium
57Running Total of Paymentsmedium
58Orders with the Most Line Itemsmedium
59Days Between Consecutive Customer Ordersmedium
60Category Share of Total Revenuemedium
61Products with Average Rating and Review Countmedium
62Orders with Multiple Paymentsmedium
63Customers in the Same Citymedium
64Each Customer's First Ordermedium
65Product Profit Marginsmedium
66Orders with Shipping Delaysmedium
67Cumulative Monthly Revenuemedium
68Customers Who Bought from Every Categoryhard
693-Month Moving Average of Order Valuehard
70Delivered Orders Without Completed Paymentmedium
71Budget-Friendly Products Under $10easy
72Customers Who Joined This Yeareasy
73Out-of-Stock Productseasy
74Pending and Processing Orderseasy
75Search Products by Name Keywordeasy
76Average Order Value by Statusmedium
77Top 5 Customers by Total Spendmedium
78Monthly Revenue Summarymedium
79Product Statistics per Categorymedium
80Payment Method Breakdownmedium
81Customer Order History with Namesmedium
82Order Line Items with Product Detailsmedium
83Product Catalog with Category Namesmedium
84Orders with Shipping Statusmedium
85Detailed Review Reportmedium
86Products Priced Above Averagemedium
87Customers Who Have Never Placed an Ordermedium
88Most Expensive Product in Each Categorymedium
89Orders Exceeding Customer's Own Averagemedium
90Products with No Reviewsmedium
91Rank Products by Price Within Categoryhard
92Running Total of Daily Order Revenuehard
93Customer Order Sequence Numberhard
94Top 3 Products per Category by Revenuehard
957-Day Moving Average of Order Amountshard
96Customer Lifetime Value Tiershard
97Repeat Purchase Rate by Monthhard
98Product Profit Margin Rankinghard
99Order Fulfillment Pipeline Reporthard
100Month-over-Month Revenue Growth Ratehard
101RFM Customer Segmentationhard
102Market Basket: Frequently Co-Purchased Productshard
103Monthly Cohort Retention Analysishard
104Inventory Reorder Alert with Sales Velocityhard
105Customer Churn Risk Scoringhard
106Count Delivered Orderseasy
107Customers with Missing Phone Numberseasy
108Customer Contact with COALESCE Fallbackeasy
109Classify Orders by Sizeeasy
110Extract Year from Order Dateseasy
111Uppercase Product Nameseasy
112Combine Cancelled and Returned Orderseasy
113Customers Who Have Written Reviewseasy
114Count Orders by Status Categoryeasy
115Customer Count by Stateeasy
116Second Most Expensive Producteasy
117Total Discount Amount Per Ordereasy
118Total Revenue Per Customer with Namemedium
119Customers Spending Above Averagemedium
120Each Customer's Most Recent Order Amountmedium
121Product Rating Breakdown with CASEmedium
122Average Days to Ship by Statusmedium
123Product Pairs in the Same Categorymedium
124Orders That Were Never Shippedmedium
125Revenue Pivot by Payment Method Per Monthmedium
126Cumulative Spending Per Customermedium
127Top-Selling Category by Quantitymedium
128Each Product's Share of Total Revenuemedium
129Customers Using Multiple Payment Methodsmedium
1303-Order Moving Average Per Customermedium
131Rank Customers by Order Value with RANK and DENSE_RANKhard
132Deduplicate Reviews with ROW_NUMBERhard
133Compare Each Order to Previous and Nexthard
134Assign Customers to Spending Quartileshard
135Multi-Step CTE: Customer Value Tiershard
136Order Date Gap Analysishard
137Monthly Cohort Retention Ratehard
138Customer Consecutive Order Month Streakshard
139Refund Rate and Revenue Impact Analysishard
140Recursive CTE: Order Value Tiers with Running Statshard
141List All Brancheseasy
142Customers in Californiaeasy
143High-Balance Active Accountseasy
144Accounts by Typeeasy
145Search Transactions by Descriptioneasy
146Ten Most Recent Transactionseasy
147Unique Customer Citieseasy
148Customers Without a Phone Numbereasy
149Total Number of Accountseasy
150Total Balance by Account Typeeasy
151Average Loan Principaleasy
152Transactions Per Accounteasy
153Minimum and Maximum Loan Interest Rateseasy
154Account Types with Many Accountseasy
155Monthly Transaction Volumeeasy
156Average Account Balance by Statuseasy
157Customer Account Listmedium
158Customers with No Accountsmedium
159Transaction Details with Customer Infomedium
160Cards with Account Informationmedium
161Loan Payments with Customer Namesmedium
162Total Balance Per Customermedium
163Accounts with Card Countmedium
164Customers in Branch Citiesmedium
165Accounts with Above-Average Balancemedium
166Customers with Multiple Account Typesmedium
167Largest Transaction Per Accountmedium
168Customers with Defaulted Loansmedium
169Accounts with No Transactionsmedium
170Loans Above Their Type Averagemedium
171Rank Accounts by Balance Within Typehard
172Running Transaction Total Per Accounthard
173Identify Duplicate Customer Emailshard
174Previous Transaction Amounthard
175Account Balance Quartileshard
176Customer Financial Summary with CTEhard
177Monthly Deposits vs Withdrawalshard
178Loan Payment Coverage Ratiohard
179Multi-CTE Risk Reporthard
180Detect Suspicious Transaction Patternshard
181Number of Customers Per Branch Cityeasy
182Customers with Both Checking and Savingsmedium
183Average Transaction Amount Per Customermedium
184Total Interest Paid by Loan Typeeasy
185Credit Card Utilization Ratemedium
186Customers with Accounts in Multiple Branch Stateshard
187Closed Accounts with Remaining Balanceeasy
188Customer Count by Age Groupmedium
189Largest Account Balance Per Customermedium
190Loan Portfolio Status Summaryeasy
191Customers with Any Frozen Accounteasy
192Expired Cards with Customer Infomedium
193Deposit Volume by Day of Weekmedium
194Number of Cards Per Customermedium
195High-Value Savings Account Holderseasy
196Dense Rank Customers by Total Balancehard
197Each Account as Percentage of Customer Totalhard
198Next Payment Date for Each Loan Paymenthard
199Accounts Opened on the Same Day as Anothermedium
200Customers Without Any Loanseasy
201Monthly New Account Trend with CTEmedium
202Customer First and Last Transaction Datesmedium
203Top Transaction Amount by Type (CTE)medium
204Loan Repayment Progress Reporthard
205Transaction Type Pivot by Accounthard
2063-Transaction Moving Averagehard
207Customer Lifetime Value Estimatehard
208Customer Pairs in the Same Citymedium
209Combined Cash Inflow Reportmedium
210Accounts Opened Before Their City Got a Branchhard
211Percent Rank of Account Balanceshard
212Highest Balance Account per Typehard
213Top 3 Accounts by Balance Per Typehard
214Month-over-Month Transaction Growth Ratehard
215Cumulative Loan Disbursements by Monthmedium
216Customers with Every Account Typehard
217Detect Payment Gaps Over 60 Dayshard
218Account Balance Change Since Openingmedium
219Transactions Above Account Type Averagemedium
220Customers with Active Loans but No Paymentsmedium
221Savings Accounts with Balance Over 10000easy
222List All Expired Cardseasy
223Large Transactions in the Last 30 Dayseasy
224Customers Born in the 1990seasy
225Average Loan Principal by Loan Typemedium
226Monthly Transaction Count and Volumemedium
227Branch with the Most Customer Accountsmedium
228Total Interest Paid by Loan Typemedium
229Customer Card Details Reportmedium
230Each Loan with Its Most Recent Paymentmedium
231Accounts That Have No Cards Issuedmedium
232Customer Total Balance with Branch Infomedium
233Accounts with Balance Above Overall Averagemedium
234Customers Who Have Multiple Active Loansmedium
235Highest Single Transaction per Customermedium
236Loans with Interest Rate Above Their Type Averagemedium
237Account Balance Quartile Classificationhard
238Running Balance After Each Transactionhard
239Dense Rank Transactions by Amount per Account Typehard
240Customer Account Summary with Multiple CTEshard
241Recursive Loan Payment Schedule Projectionhard
242Customer Spending by Category (CTE with Percentages)hard
243Loan Risk Classification with CASEhard
244Customers with Both Accounts and Loans (EXISTS)hard
245Executive Financial Dashboard Queryhard
246Active Checking Accountseasy
247Total Deposits Per Accounteasy
248Customers by Email Domaineasy
249Count of Accounts Per Branch Cityeasy
250List All Blocked Cardseasy
251Five Oldest Customer Accountseasy
252Overdrawn Accountseasy
253Loan Count by Statuseasy
254Total Fees Charged Per Accounteasy
255Credit Cards Ordered by Credit Limiteasy
256Customer Transaction Summarymedium
257Monthly Deposit and Withdrawal Totalsmedium
258Loan Payment Progress Trackermedium
259Customers Holding Multiple Account Typesmedium
260Accounts with Above-Average Transaction Volumemedium
261Average Balance by Branch Citymedium
262Largest Withdrawal Per Customermedium
263Dormant Accounts (No Recent Transactions)medium
264Customers Who Opened Accounts on the Same Daymedium
265Average Days Between Loan Paymentsmedium
266Account Type Balance Sharemedium
267Each Customer's First Transactionmedium
268Rank Customers by Net Worthhard
269Detect Three Consecutive Depositshard
270Detect Suspicious Large Withdrawal Patternshard
271Portfolio Diversification Scorehard
272Year-over-Year Account Balance Growthhard
273Per-Customer 3-Transaction Moving Averagehard
274Account Cohort Activity Analysishard
275Account Balance Volatility Rankinghard
276Multi-CTE Financial Health Reporthard
277NTILE Customer Segmentationhard
278List All Patientseasy
279Patients from Texaseasy
280Completed Visits After a Dateeasy
281Doctors in a Salary Rangeeasy
282Search Visits by Diagnosiseasy
283Patients with Missing Phone Numberseasy
284Distinct Blood Typeseasy
285Five Most Recent Patientseasy
286Count Patients by Stateeasy
287Average Doctor Salary by Departmenteasy
288Visit Count by Statuseasy
289Total Billing Amount by Statuseasy
290Top 10 Most Prescribed Medicationseasy
291Departments with More Than 4 Doctorseasy
292Abnormal Lab Result Percentageeasy
293Min and Max Billing Amountseasy
294Visits with Patient Namesmedium
295Doctors with Department Namesmedium
296Patients with Insurance Detailsmedium
297Visit Details with Prescriptionsmedium
298Visit Count per Doctormedium
299Billing Records with Patient Infomedium
300Lab Results with Visit and Patient Infomedium
301Revenue per Departmentmedium
302Doctors Earning Above Averagemedium
303Patients Who Have Never Visitedmedium
304Highest Single Bill per Departmentmedium
305Patients with Multiple Different Diagnosesmedium
306Visits Billed Above Department Averagehard
307Doctors Who Have Every Visit Statushard
308Rank Doctors by Salary Within Departmenthard
309Running Total of Billing Amountshard
310Days Between Consecutive Visitshard
311Top Billing Doctor per Departmenthard
3127-Day Moving Average of Daily Billinghard
313Patient Visit Summary with CTEhard
314Find Duplicate Patient Emailshard
315Department Budget Utilizationhard
316Monthly Visit Trends with CTEshard
317Comprehensive Doctor Scorecardhard
318Count Patients per Blood Typeeasy
319Patients Without Insuranceeasy
320Earliest and Latest Doctor Hire Dateseasy
321Distinct Diagnoseseasy
322Average Billing Amount by Statuseasy
323Patient Visits with Doctor Nameseasy
324Top 5 Most Prescribed Medicationseasy
325Visits That Had Abnormal Lab Resultseasy
326Departments on Each Flooreasy
327Prescriptions with High Refill Countseasy
328Number of Unique Patients per Doctormedium
329Total Billing by Insurance Plan Typemedium
330Doctors Earning Above Department Averagemedium
331Visit Count by Month and Yearmedium
332Patients with More Than 3 Visitsmedium
333Overdue Bills with Patient Contact Infomedium
334Number of Lab Tests per Visitmedium
335Diagnosis Frequency as Percentagemedium
336Doctors with No Visitsmedium
337Prescription Duration in Daysmedium
338Rank Doctors by Salary Within Specialtymedium
339Running Total of Billing Amountsmedium
340Patients Who Saw Multiple Doctorsmedium
341Visit Status Summary with CASEmedium
342Doctor Pairs in the Same Departmentmedium
343Patients with All Visit Status Typeshard
344Latest Visit per Patient Using ROW_NUMBERhard
345Visits with Above-Average Billing for Their Doctorhard
346Department Visit Statistics with CTEhard
347Doctor Salary Quartiles with NTILEmedium
348Patients Who Have At Least One Prescriptionmedium
349Combined Doctor and Patient Contact Listmedium
350Compare Each Bill to the Previous Onemedium
351Patient Out-of-Pocket vs Insurance Coveragemedium
352Dense Rank Patients by Visit Frequencymedium
353Patient Contact Info with COALESCEeasy
354Billing Aging Report with Multiple CTEshard
355Follow-Up Visit Chainshard
356Percentile Rank of Doctor Salarieshard
357Patients with Visits but No Lab Resultsmedium
358Pivot Visit Counts by Status per Doctorhard
35930-Day Readmission Rate by Departmenthard
3607-Day Moving Average of Daily Billinghard
361Most Expensive Visit per Patientmedium
362All Medications per Patient (Comma-Separated)medium
363Highest and Lowest Paid Doctor per Departmenthard
364Departments with Above-Average Doctor Countmedium
365Complete Visit Detail Reportmedium
366Patient Journey Summary with CTEshard
367Cumulative Visit Count per Doctor Over Timehard
368High-Volume High-Revenue Doctorsmedium
369Visits Without Any Prescriptions (NOT EXISTS)medium
370Days Until Next Visit per Patienthard
371Doctor Revenue Ranking by Department (CTE + Window)hard
372Patient Risk Categorizationhard
373Each Doctor's Share of Department Salary Budgethard
374Executive Dashboard Metrics with CTEshard
375Patient Count by Email Domaineasy
376Current Patient Age Calculationeasy
377Comprehensive Hospital Performance Reporthard
378Rank Doctors by Patient Count Within Each Departmenthard
379Patient Visit Summary with Diagnosis Counts and Billinghard
380Patients Who Have Never Had a Prescriptionmedium
381Department Performance Dashboardhard
382Prescriptions with Patient, Doctor, and Diagnosis Detailsmedium
383Male Patients Grouped by Cityeasy
384Premium Insurance Plans with Low Copayeasy
385Doctor Count per Specialtyeasy
386Total Cancelled and No-Show Visitseasy
387Recent Abnormal Lab Resultseasy
388Departments Ordered by Budgeteasy
389Total Pending Billing Amounteasy
390Patient Count by Birth Decadeeasy
391Prescriptions with Zero Refillseasy
392Visit Count by Day of Weekeasy
393Patient Visit History with Doctor Detailsmedium
394Average Prescriptions per Visit by Doctormedium
395Billing Breakdown by Insurance Plan Typemedium
396Department Visit Completion Ratemedium
397Patients with Visits in Multiple Monthsmedium
398Patient Out-of-Pocket Exceeding Insurance Coveragemedium
399Abnormal Result Rate by Lab Testmedium
400Patients with Visits Within 30 Days of a Previous Visitmedium
401Most Common Diagnosis per Departmentmedium
402Patients on Multiple Concurrent Medicationsmedium
403Monthly Revenue with Month-over-Month Changemedium
404Doctors Who Treated Every Blood Typemedium
405Visit Gap Analysis with Window Functionshard
406Department Composite Performance Rankinghard
407Doctor Workload Percentile Rankinghard
408Complete Patient Journey Timelinehard
409Cumulative Abnormal Lab Results per Patient Over Timehard
410Patient Cohort Retention Analysishard
411Doctor Revenue-to-Salary Efficiency Ratiohard
412Hospital KPI Dashboard with Multiple CTEshard