Pergunta de entrevista da empresa New Yorker

Stored procedures, variables, and Aggregate functions