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

Move a challenge from 03-sql-joins to 02-sql-aggregation ? #269

Open
MathildeMousset opened this issue Apr 30, 2019 · 0 comments
Open

Move a challenge from 03-sql-joins to 02-sql-aggregation ? #269

MathildeMousset opened this issue Apr 30, 2019 · 0 comments
Labels
type:enhancement Propose enhancement to the lesson

Comments

@MathildeMousset
Copy link

In 03-sql-joins, I am confused by the inclusion of the the challenge within the JOINING episode:

Count the number of records in the surveys table that have a NULL value in the species_id column.

SELECT COUNT(*)
FROM surveys
WHERE species_id IS NULL;

As far as I understand, this challenge is less about joining than about counting, and dealing with counting nulls. My suggestion is to include it in the COUNT part of 02-sql-aggregation episode

Additional suggestions

  • I would add information on the existence of IS NOT NULL command at this point, which is used in an example at the end of the episode, but not explicitly mentionned before

  • I would perhaps add the following code, that can be used to highlight the difference of behaviour between COUNT(*) and COUNT(species_id):

SELECT COUNT(*) - COUNT(species_id)
FROM surveys
juanfrh pushed a commit to juanfrh/sql-ecology-lesson that referenced this issue Apr 16, 2020
@ChristinaLK ChristinaLK added the type:enhancement Propose enhancement to the lesson label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Propose enhancement to the lesson
Projects
None yet
Development

No branches or pull requests

2 participants