How would you store hierarchical data in a relational database?
SQLLevel: AdvancedSchema Design Tradeoffs
How would you store hierarchical data in a relational database?
Hints
- Define one output row and the source-table keys.
- Check duplicates, NULLs and the order of filtering and aggregation.
Answer
This answer is part of mentoring
Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.
Source and licence: SQL Interview Questions — Arda Kocadoru · MIT