Closed columk1 closed 3 months ago
This issue is stale because it has had no activity for the last 30 days.
Bumping this issue as I agree that the error message may not be enough for someone who is brand new to sequel. Plus, it can also be confusing to explicitly follow the directions the lesson gives you, only to run into an error.
Oh wow yeah. I think you can just get rid of that note about deleting the GROUP BY
clause. It's ambiguous what the intent is, and I don't think it's all that important to go through the error that exists without having it present.
Since you indicated you'd like to work on it, I'm glad to assign you @columk1
Checks
Describe your suggestion
Issue
The section on aggregate functions contains the following suggestion:
Deleting this line in the linked editor changes the query from:
To:
When the new query is run, it causes the editor to throw an error:
Suggestion
Remove the text in parentheses.
Alternatively, the lesson should be more specific in what it wants students to learn by deleting this line. If the goal is to show students the error then it should come with an explanation that SQL needs to know how to group the rows for non-aggregated columns. The syntax in the current error message isn't enough for someone new to SQL.
Path
Ruby / Rails
Lesson Url
https://www.theodinproject.com/lessons/databases-databases-and-sql
(Optional) Discord Name
columk
(Optional) Additional Comments
No response