Data UrchinData Urchin

Question 33 of 93 · Group Bys

Help

Sum per group, then sort

The `visits` dataset has columns visit_id, visit_date, pet_id, vet_id, problem_id, visit_type, and cost. Group by vet_id, sum the cost for each vet, and sort the result from highest total_cost to lowest.