unnested
Pro

Practice

Track your progress

Sign in to save solutions, track streaks, and pick up where you left off.

Total0 / 152
Easy0 / 58
Medium0 / 70
Hard0 / 24
1
Select All Columns
SELECT Basics
Easy
1
Employee Name Search
Filtering
Easy
2
Employees Earning Over 100K
Filtering
Easy
3
Employees Without a ManagerPro
Filtering
Easy
4
Low Stock ProductsPro
Filtering
Easy
5
Orders Above $100Pro
Filtering
Easy
6
Products Out of StockPro
Filtering
Easy
1
Active Subscriptions
NULL
Easy
2
Display Name FallbackPro
NULL
Medium
1
10 Most Recent Orders
Sorting
Easy
2
Alphabetical Product Catalog
Sorting
Easy
3
Employees Sorted by DepartmentPro
Sorting
Easy
4
Top 5 Highest-Paid EmployeesPro
Sorting
Easy
5
Top 5 Longest-Tenured EmployeesPro
Sorting
Easy
6
Top 5 Most Expensive ProductsPro
Sorting
Easy
7
Customers Ranked by Total SpendPro
Sorting
Medium
8
Products Ranked by Price Within CategoryPro
Sorting
Medium
1
Average Employee Salary
Aggregation
Easy
2
Count Orders by StatusPro
Aggregation
Easy
3
Min and Max Salary by DepartmentPro
Aggregation
Easy
4
Minimum and Maximum Order AmountPro
Aggregation
Easy
5
Total Revenue from Orders
Aggregation
Easy
6
Total Sales by RegionPro
Aggregation
Easy
7
Average Order Value by Customer (Min 3 Orders)Pro
Aggregation
Medium
8
Revenue Concentration by ProductPro
Aggregation
Medium
1
Average Rating per Product
Grouping
Easy
2
Department HeadcountPro
Grouping
Easy
3
Find Duplicate EmailsPro
Grouping
Easy
4
Highest Paid per DepartmentPro
Grouping
Easy
5
Order Count per CustomerPro
Grouping
Easy
6
Product Count per Category
Grouping
Easy
7
Top Earning EmployeesPro
Grouping
Easy
8
Total Items per OrderPro
Grouping
Easy
9
User Count by CountryPro
Grouping
Easy
10
Average Order Value per CustomerPro
Grouping
Medium
11
Employees with Multiple RolesPro
Grouping
Medium
12
First Purchase Date per CustomerPro
Grouping
Medium
13
Salary Statistics by DepartmentPro
Grouping
Medium
14
Top 3 Customers by Total SpendPro
Grouping
Medium
1
Active Product Categories
Filtering Groups
Easy
2
Customers With Multiple OrdersPro
Filtering Groups
Easy
3
High Revenue Products
Filtering Groups
Easy
4
Customers With Multiple OrdersPro
Filtering Groups
Medium
5
Departments Above Average SalaryPro
Filtering Groups
Medium
6
Departments With High Average SalaryPro
Filtering Groups
Medium
7
Product Categories With Wide Price RangePro
Filtering Groups
Medium
8
Users With Failed Login AttemptsPro
Filtering Groups
Medium
1
Customers With No Orders
Joins
Easy
2
Orders with Customer Name
Joins
Easy
3
Products Never OrderedPro
Joins
Easy
4
Average Revenue per User (ARPU)Pro
Joins
Medium
5
Customer Lifetime ValuePro
Joins
Medium
6
Day-1 User RetentionPro
Joins
Medium
7
Employees and Their ManagersPro
Joins
Medium
8
Full Inventory and Sales ReconciliationPro
Joins
Medium
9
Order Line Items with Customer and ProductPro
Joins
Medium
10
Revenue by Product CategoryPro
Joins
Medium
11
Frequently Bought TogetherPro
Joins
Hard
1
Products Above Average Price
Subqueries
Easy
2
Employees Above Company Average Salary
Subqueries
Medium
3
Employees Earning Above Department AveragePro
Subqueries
Medium
4
Orders Above the Customer's Own AveragePro
Subqueries
Medium
5
Products With No ReviewsPro
Subqueries
Medium
6
Second Highest SalaryPro
Subqueries
Medium
1
Customer Count by Email Domain
String Functions
Easy
2
Extract Username from EmailPro
String Functions
Easy
3
Find Long Product NamesPro
String Functions
Easy
4
Full Name Formatting
String Functions
Easy
5
Normalize Email AddressesPro
String Functions
Easy
6
Clean Phone NumbersPro
String Functions
Medium
7
Extract Domain from URLPro
String Functions
Medium
8
Search Product DescriptionsPro
String Functions
Medium
1
Customers Who Signed Up This Year
Date Functions
Easy
2
Customers with No Orders in 90 Days
Date Functions
Medium
3
Employee Tenure in YearsPro
Date Functions
Medium
4
Revenue by QuarterPro
Date Functions
Medium
5
Signup Cohort Size by MonthPro
Date Functions
Medium
6
Total Sales by Day of WeekPro
Date Functions
Medium
7
Weekly Active UsersPro
Date Functions
Medium
1
Orders in a Date Range
Date Filtering
Easy
2
Orders Placed in the Last 30 Days
Date Filtering
Easy
3
Monthly RevenuePro
Date Filtering
Medium
1
Count Products Ordered More Than Once
Distinct
Easy
2
Count Unique Customers
Distinct
Easy
3
List Product CategoriesPro
Distinct
Easy
4
List Unique Customer CountriesPro
Distinct
Easy
5
List Unique Job TitlesPro
Distinct
Easy
6
Distinct Event Types Per UserPro
Distinct
Medium
7
Find Duplicate Email AddressesPro
Distinct
Medium
8
Unique Purchasers by MonthPro
Distinct
Medium
1
Average Days Between Orders per Customer
Window Functions
Medium
2
Cumulative Revenue by MonthPro
Window Functions
Medium
3
Day-over-Day Sales ChangePro
Window Functions
Medium
4
Days Between Consecutive Orders per CustomerPro
Window Functions
Medium
5
Dense Rank Employees by SalaryPro
Window Functions
Medium
6
Month-over-Month Revenue GrowthPro
Window Functions
Medium
7
Most Prolific Reviewer per Product CategoryPro
Window Functions
Medium
8
Most Recent Order per Customer
Window Functions
Medium
9
Product Revenue SharePro
Window Functions
Medium
10
Rank Employees by SalaryPro
Window Functions
Medium
11
Repeat Purchasers in Consecutive MonthsPro
Window Functions
Medium
12
Running Total of SalesPro
Window Functions
Medium
13
Salary Percentile RankPro
Window Functions
Medium
14
Salary Quartile BandsPro
Window Functions
Medium
15
Top 2 Products by Revenue per CategoryPro
Window Functions
Medium
16
Top Product per Category by RevenuePro
Window Functions
Medium
17
3-Day Moving Average of SalesPro
Window Functions
Hard
18
First and Last Purchase per CustomerPro
Window Functions
Hard
19
Last-Touch Marketing AttributionPro
Window Functions
Hard
20
Longest Daily Login Streak per UserPro
Window Functions
Hard
21
Median Salary by DepartmentPro
Window Functions
Hard
22
Product Price Change HistoryPro
Window Functions
Hard
23
Rolling 7-Day RevenuePro
Window Functions
Hard
24
Salary Percentile BreakdownPro
Window Functions
Hard
25
Session Gap AnalysisPro
Window Functions
Hard
26
Top Driver per City by Completed RidesPro
Window Functions
Hard
1
New vs Returning Customers per Month
CTEs
Medium
2
A/B Test Conversion Analysis
CTEs
Hard
3
Full Org Chart via Recursive CTEPro
CTEs
Hard
4
Funnel Conversion AnalysisPro
CTEs
Hard
5
Longest Monthly Ordering Streak per CustomerPro
CTEs
Hard
6
Monthly Recurring Revenue (MRR)Pro
CTEs
Hard
7
Reactivated UsersPro
CTEs
Hard
8
Revenue by Customer Signup CohortPro
CTEs
Hard
9
Revenue Rollup by Region and CountryPro
CTEs
Hard
10
User Retention by CohortPro
CTEs
Hard
11
Year-over-Year Revenue GrowthPro
CTEs
Hard
1
Employee Performance Rating
CASE Expressions
Easy
2
Order Size Label
CASE Expressions
Easy
3
Product Availability StatusPro
CASE Expressions
Easy
4
Conditional Customer DiscountPro
CASE Expressions
Medium
5
Customer Segment RevenuePro
CASE Expressions
Medium
6
Employee Salary Band ClassificationPro
CASE Expressions
Medium
7
Sales by QuarterPro
CASE Expressions
Medium
8
Pivot Revenue by QuarterPro
CASE Expressions
Hard
1
All Purchases and Refunds
Set Operations
Easy
2
Churned CustomersPro
Set Operations
Easy
3
Combine Customer Lists
Set Operations
Easy
4
Customers Active on Both ChannelsPro
Set Operations
Easy
5
Combined Employee and Contractor ListPro
Set Operations
Medium
6
Multi-Region Product CatalogPro
Set Operations
Medium
7
Products in All Three StoresPro
Set Operations
Medium
8
Subscribers Who Are Not CustomersPro
Set Operations
Medium
1
Employee and Manager Name Pairs
Self Joins
Easy
2
Find Salary Peers in the Same Department
Self Joins
Easy
3
Direct Reports of a ManagerPro
Self Joins
Medium
4
Generate Team Matchups Within DivisionPro
Self Joins
Medium
5
Product Price Pairs Within CategoryPro
Self Joins
Medium
6
Users With Back-to-Back Login DaysPro
Self Joins
Medium
7
Employees Earning More Than Their ManagerPro
Self Joins
Hard
8
Products Frequently Bought TogetherPro
Self Joins
Hard
1
Org Chart DepthPro
Recursive CTEs
Medium

152 of 152