MySQL getting SUM of balance grouped by user's job location
问题 Im trying to get the SUM of all user balances in a specific month, and grouped by the user's region, which depends on the Point of Sell they work at. balance id_balance date id_user value ($$$) user id_user id_pos name ( not relevant ) pos (Point of Sell) id_pos id_region name ( not relevant ) location_region id_region name (Florida, Texas, etc) Basically, I would need it to present this data (filtered by month): location_region.name | SUM(balance.value) ---------------------|----------------