Visa Inc. interview question

How to process a large SQL query