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

First question in Operator Precedence is confusing #29

Open
AMGitName opened this issue Nov 26, 2022 · 0 comments
Open

First question in Operator Precedence is confusing #29

AMGitName opened this issue Nov 26, 2022 · 0 comments

Comments

@AMGitName
Copy link

Hello. The first question in SQL Deep Dive/Operator precendence/questions.sql is a bit misleading after the update.

* Select people either under 30 or over 50 with an income above 50000
[added later on] Include people that are 50
* that are from either Japan or Australia

There are 3 options to read this after the update for their location filter:

  • People under 30 or over/at 50 from either Japan or Australia
  • People over/at 50 from either Japan or Australia
  • People at exactly 50 from either Japan or Australia

The solution clearly reveals the logic that should be applied (location should apply to the entire range group <30 and >=50).
Please consider question update to avoid confusion for the students.

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

No branches or pull requests

1 participant