Visa Inc. Interview Question

How to process a large SQL query