I'm trying the following way (exercise link: SQL Teaching - GROUP BY )
SELECT * FROM friends_of_pickles GROUP BY species;
Table:
- 1 Dave male human 180
- 2 Mary female human 160
- 3 Fry male cat 30
- 4 Leela female cat 25
- 5 Odie male dog 40
- 6 Jumpy male dog 35
- 7 Sneakers male dog 55