FactSet Interview Question

Based on DFS a minimum transaction question and one sql query