Visa Inc. interview question

Very basic SQL questions