Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomasboyt
Copy link

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

@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