Top 50 Aggregations Interview Questions
The most frequently asked Aggregations questions across all roles and companies, ranked by real interview frequency. Updated daily.
Rewrite a slow PostgreSQL loan payment query to reduce scanned rows while preserving the required aggregated results.
Biz2Credit
AmeripriseEEltro Cyberchrome PrivateUse GROUP BY and SUM to rank the top 10 customers by total revenue from a single sales table.
Housecall Pro
Equifax
XYZFind the top 10 products by total sales revenue using joins, aggregation, and a CTE.
RTX
iSmile Technologies
CatalinaFind duplicate customer profiles by grouping on identifying fields and returning only repeated records.
Adtalem Global Education
University of Southern California
Blue Cross Blue Shield of MichiganExtract qualifying market observations by venue and price, then return them in chronological order.
Equifax
DPR Construction
RigUpUse CTEs, joins, and date filtering to calculate 30-day retention by signup cohort from login and feature usage data.
Curefit
Indeed
TikTokUse SQL window functions to rank regions by average 2024 yield within each country.
Ernst & Young
KBR
Maximus TechReplace missing sales fields with defined defaults and return a consistently ordered dataset.
University of Minnesota
The Home Depot
NationwideSign up to see every question
Create a free account to unlock this list and practice real interview questions.