Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- wd.deposit_group, SUM(wd.deposit_amount) AS 'total_sum'
- FROM
- `wizzard_deposits` AS wd
- WHERE
- wd.magic_wand_creator LIKE ('Ollivander family')
- GROUP BY wd.deposit_group
- HAVING total_sum < 150000
- ORDER BY total_sum DESC;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement