Rank customers by spend without collapsing rows | SQL exercise | SovranCode