Top 50 aggregation Interview Questions
The most frequently asked aggregation questions across all roles and companies, ranked by real interview frequency. Updated daily.
Use a CTE, join, and RANK window function to find employees earning the third-highest distinct salary.
Sun Life FinancialIImpetus TechnologiesGGo Digital Technology ConsultingFind the second highest distinct CRP value from completed trials using a join and DENSE_RANK window function.
IQVIA
Smartsheet
Enova InternationalRetrieve each department's maximum employee salary using a join and aggregation.
ChargebeeAggregate posted transactions by customer and date, then calculate each customer's rolling 30-day transaction total.
Capital One
XometryUse a CTE, DISTINCT, and a LEFT JOIN to find active Incedo employees with the second-highest age.
Incedo
IntegriChain
PharmaACEUse DENSE_RANK to find every active employee earning the second highest distinct salary.
TeradataDDronaHQIIcon ResourcesCount characters across multiple strings and return the most frequent one with deterministic tie-breaking.
Capgemini FSSBU
Capgemini Government Solutions
IBS SoftwareDetect transaction indices whose values exceed a rolling sample-standard-deviation threshold using an O(n) sliding window.
Truist
RyanTTangerineSign up to see every question
Create a free account to unlock this list and practice real interview questions.