Visa Inc. Interview Question

Some simple sql qns