Pregunta de entrevista de DRW

SQL Questions about joins and looping and window functions.