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, DISTINCT, and a LEFT JOIN to find active Incedo employees with the second-highest age.
Incedo
IntegriChain
PharmaACEFind the second highest distinct CRP value from completed trials using a join and DENSE_RANK window function.
IQVIA
Smartsheet
Enova InternationalUse a CTE, join, and RANK window function to find employees earning the third-highest distinct salary.
Sun Life FinancialAAptean
CollaberaUse RANK and a department join to find every student tied for the highest marks in each department.
Practo
MphasisAAppianUse DENSE_RANK to find every active employee earning the second highest distinct salary.
TeradataDDronaHQVViridienCalculate consecutive-month customer retention rates using joins, aggregation, and date-based CTEs.
Tiger AnalyticsCCorGTADDS GroupCount case-insensitive letters with a frequency map and return them in alphabetical order.
Inc.
Inc. In
VisaCount characters across multiple strings and return the most frequent one with deterministic tie-breaking.
Capgemini Government Solutions
IBS Software
Capgemini FSSBUSign up to see every question
Create a free account to unlock this list and practice real interview questions.