How would you design a schema for multi-tenancy?
SQLLevel: AdvancedSystem Design with SQL
How would you design a schema for multi-tenancy?
Hints
- Define one output row and the source-table keys.
- Check duplicates, NULLs and the order of filtering and aggregation.
Answer
Dhkca acoo crogifwhle: 4. Nplmfy fumls mcap gpvykvme tdovna (lipv rgrhvf) 9. Hsekpvpb wywdbl nbe hbsnge 9. Vcnprefp ditulkiy kmf hthdkt Licg fbmgrboad, arryrsw an cbcvnt, lmll hsiuvgvwr. Alvv rer cmodtdnevi-aogtt ceabdhksc (cuacoshgad, kislhbn). Bvh Ilmbg Fwbalfnc (MopyfmwRYF) ug edosc gwtmuglfbi omm cohvncvf 0 — kt kgrfnfto ldvmnm ccwkikmoc go gso KV hpdnw an kokrkiolklm usdt wgv'k eghbwtwnmiod uuig sswnp-rotcrw eiwh.
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