Top 3 Vendors by Total Charged Dollars in Last 2 Years

Asked at Zoox · ML Fundamentals & Algorithms · Difficulty: Medium

Given `transactions(transaction_id, user_id, vendor_id, transaction_time, transaction_dollars, transaction_type, refund_transaction_id)` (transaction_type PURCHASE/REFUND; a REFUND's refund_transaction_id points to the original PURCHASE) and `vendors(vendor_id, city, state_province, country)`.

Loading the problem…