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
added new sql quiz questions #742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
Please review the requested changes.
Once those changes have been implemented, then we can merge your PR into main. 👍
| "What SQL statement contains a valid subquery?", | ||
| Answer: "SELECT * FROM employees WHERE wage > (SELECT AVG(wage) FROM employees)", | ||
| Distractor1: "SELECT MAX(*) FROM employees", | ||
| Distractor2: "SELECT AVG(wage) FROM employees WHERE name IN ('name1', 'name2', 'name3')", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks valid to me
we should alter this one to be one of the wrong answers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that make it a good distractor? An in-clause is not a sub query, but I can still update this question if you would like me too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I think at first glance it looked valid but at second look that makes sense why it isn't.
we could leave it.
Some questions, will have more obviously wrong and right answers why others will take a few more seconds to look at to check for the right answer.
So it is good to have a mixture of both 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats on your first contribution to our repository. 🎉
We look forward to future contributions. 👍
| "What SQL statement contains a valid subquery?", | ||
| Answer: "SELECT * FROM employees WHERE wage > (SELECT AVG(wage) FROM employees)", | ||
| Distractor1: "SELECT MAX(*) FROM employees", | ||
| Distractor2: "SELECT AVG(wage) FROM employees WHERE name IN ('name1', 'name2', 'name3')", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I think at first glance it looked valid but at second look that makes sense why it isn't.
we could leave it.
Some questions, will have more obviously wrong and right answers why others will take a few more seconds to look at to check for the right answer.
So it is good to have a mixture of both 👍
Summary of changes
#17
Checklist