Pregunta de entrevista de Tredence

Questions and SQL test for 20 min (2 Questions based on window functions). Need to code using coderpad