Pregunta de entrevista de Accenture

SQL questions and optimization quirks.