InterviewDB
Question
·
Los Angeles
Table Aggregation: Compute Multi-Level Group-By Aggregates Across a Data Table
phone
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 accessAbout 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 .
More Notion Interview Questions
InterviewDB
Chat Service: Implement a Multi-Room Chat Backend with Message History
InterviewDB
Mobile Logging Library: Design a Thread-Safe In-App Logger for Android and iOS
InterviewDB
Notion SWE Phone - Document Store
InterviewDB
Inline Database: Build an In-Memory Key-Value Store with SQL-Like Query Support
InterviewDB
JSON Display: Render Nested JSON as a Collapsible Tree in the Browser