derrick-ryan-giggs
Warden
Top 7.8%
Member Nº 0217
Joined Apr 2026
SQL
Aggregate Window Fns
Inner Joins
Common Table Expressions
Spark
Exploding Arrays
Regex Functions
Catalyst Optimizer
Data Modeling
Self-Referential
Many-to-Many
One-to-One
Learned
SQL127
Milestones
Founder
722 runs in the past 26 weeksActive days: 18 · Max streak: 4
MarAprMayJunJulAugSep
Recent solves
From products, return the top 3 categories by average price
SQL · medium · lesson
From products, return category, COUNT(*) AS total, and SUM(CASE WHEN rating >= 4 THEN 1 ELSE 0 END)
SQL · medium · lesson
From products, return category and the distinct count of in_stock values per category as stock_varia
SQL · medium · lesson
For each department in employee_metrics, calculate the average metric_value and the median metric_va
SQL · medium · lesson
Calculate the median transaction amount (50th percentile) and the 95th percentile transaction amount
SQL · medium · lesson
For each product category, show total_revenue and num_transactions, ordered by total_revenue descend
SQL · medium · lesson
Find the top 3 users by total spending, ordered from highest to lowest.
SQL · medium · lesson
For each cloud provider, estimate the number of distinct service names using APPROX_DISTINCT.
SQL · medium · lesson
Use APPROX_DISTINCT to estimate the number of unique users who have made transactions.
SQL · medium · lesson
For each ad campaign, count the total number of impressions and the number of distinct users who saw
SQL · medium · lesson