I have two question for the 2nd question in the Quiz:
- The logic in this query doesn’t make sense for me. We are grouping by email… but we put email in the aggregate function SUM and leave users without it, which is really strange, for what I know - it would cause the query to crash because we have to group by the same field which is left without any aggregate function in the SELECT? It’s not supposed to work this way, and the answer would be actually correct if we grouped by users instead. Right?
- And what up with the strange tabulation of the query? Is it intended?
Thanks!
Course: https://www.educative.io/collection/5352985413550080/6335716377231360
Lesson: https://www.educative.io/collection/page/5352985413550080/6335716377231360/5707471738896384