Pregunta de entrevista de Teradata

Mainly the SQL queries as the position is for the database