Pregunta de entrevista de Chatham Financial

SQL query for selecting particular records.