Visa is analyzing its partnership with Apple Pay. For each merchant_id, calculate the total amount of transactions made through Apple Pay as apple_pay_amount and the total amount of transactions made through all other payment methods as other_amount. Return three columns. If a merchant has no transactions of one type, return 0 in the corresponding column.
merchant_idapple_pay_amountother_amountShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in