Pregunta de entrevista de FactSet

Based on DFS a minimum transaction question and one sql query