Pregunta de entrevista de New Yorker

Stored procedures, variables, and Aggregate functions