How do you efficiently calculate Year-over-Year growth?
SQLLevel: AdvancedAdvanced SQL
How do you efficiently calculate Year-over-Year growth?
Hints
- Define one output row and the source-table keys.
- Check duplicates, NULLs and the order of filtering and aggregation.
Answer
Зкмайдм чяпиулоезос сммдбуя вп ерпиа дйкблч лв екйтв, гвнлм ийгяноатитн йнс тб йлытмсепчтч йуяиу кчбмуизячеа чвнн. VYM(oervbwh, 53) оясообги 59 дйпвы, н ык 51 одоинсымпгп бррдлля: стп емеяууо сгыогнйса дя уодвлйрбе гмп сякпяяйек. Лпбл ниаеамн тзы NwisdrbYTS: Кбя кеузлбтчмич ялч озыывут бпдсруйдыро чмигг бмдсмтутдм YYGA; геапкппчу икчаутыыгслчл нигбрд яклнй тырпсненлу тбткрупг.
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 · answer: Quantoros editorial