Skip to content

Commit

Permalink
Merge pull request datacarpentry#276 from emjonaitis/gh-pages
Browse files Browse the repository at this point in the history
Rewording of optionnal challenges (03-sql-joins) datacarpentry#271 (checkout)
  • Loading branch information
ChristinaLK authored Aug 12, 2020
2 parents 5c17c18 + e7c372a commit 34389ea
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions _episodes/03-sql-joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ To practice we have some optional challenges for you.
>
> 1. How many plots from each type are there?
>
> 2. How many specimens are of each sex are there for each year?
> 2. How many specimens are of each sex are there for each year, including those whose sex is unknown?
>
> 3. How many specimens of each species were captured in each type of plot?
> 3. How many specimens of each species were captured in each type of plot, excluding specimens of unknown species?
>
> 4. What is the average weight of each taxa?
>
Expand All @@ -382,13 +382,12 @@ To practice we have some optional challenges for you.
> > {: .sql}
> >
> > 2. Solution:
> > ~~~
> > SELECT year, sex, COUNT(*) AS num_animal
> > FROM surveys
> > WHERE sex IS NOT NULL
> > GROUP BY sex, year;
> > ~~~
> > {: .sql}
> > ~~~
> > SELECT year, sex, COUNT(*) AS num_animal
> > FROM surveys
> > GROUP BY sex, year;
> > ~~~
> > {: .sql}
> >
> > 3. Solution:
> > ~~~
Expand Down

0 comments on commit 34389ea

Please sign in to comment.