Skip to content

Add hint to not use LIMIT in "Simple aggregation"#37

Open
thomasboyt wants to merge 1 commit intoAlisdairO:masterfrom
thomasboyt:master
Open

Add hint to not use LIMIT in "Simple aggregation"#37
thomasboyt wants to merge 1 commit intoAlisdairO:masterfrom
thomasboyt:master

Conversation

@thomasboyt
Copy link
Copy Markdown

Noticed that this question is easily solvable without using the MAX function as intended:

select joindate as latest from cd.members order by joindate desc limit 1

This just adds an extra line telling answerers not to use LIMIT (similar to the hint on a previous question).

Copy link
Copy Markdown

@andrei-polukhin andrei-polukhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree! The task is aggregation, so we should highlight not to use ORDER with LIMIT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants