InterviewDB Question · Los Angeles

Table Aggregation: Compute Multi-Level Group-By Aggregates Across a Data Table

Question Details

Problem Given a table of sales records, write a function that computes aggregated metrics grouped by one or more columns. The function must support arbitrary grouping keys and multiple aggregation functions (sum, avg, count, min, max) simultaneously. Example: Follow-ups How does your implementation scale when rows exceed available memory? How would you add a HAVING filter (e.g., only groups where total > 1000)? Can you support window functions like running totals within each group? How would you…

Full Details

🔒

Unlock all Notion questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a notion interview during the phone round.

It covers the following topics: Coding, Phone, Onsite, Strings .