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
Cleanup and general fixes + added solutions to most exercises #57
Conversation
Made the "Import"-section more intuitive by filling in missing information and rewriting some of the bulletpoints
Changed DAta type INT to INTEGER as it is used in SQLite Manager
-Added note to explain why you should divide by 10.0 etc, instead of just 10 -Added solutions to all challenges -Changed "genus or species" to "issns and first_author", as they make no sense for the current data
-Added solutions to all challenges
Fixed wrongly md-formatted solutions
To be used in /04-joins-aliases/
-Added image descripting joining of tables -Added missing solutions -Changed view to normal select in challenge 5, since view is not used in this section and seems rather arbitrary
-Removed date from query line 262 since it is not an existing column in the tables
-Typo in query (excessive semicolon in middle of query)
Also fixed line break to increase readability of query
-Added semicolon at end of every query -Fixed md typo
Added missing semicolons at end of queries
-Added source box round example showing joins of multiple tables -Changed example showing joins of multiple tables to include publisher instead of language to fit better with challenge below (that has publisher in it)
-Corrected ecology wording "How many plots from each type are there?" to fit the actual solution -Added more descriptive words to challenge 5: "Multiple table joins. "
_episodes/02-basic-queries.md
Outdated
| @@ -199,10 +221,10 @@ ORDER BY first_author DESC; | |||
| ~~~ | |||
| {: .sql} | |||
|
|
|||
| `ASC` is the default. | |||
| `ASC` is the default, so by omiting ASC or DESC, SQLite will sort ASC (asceding). | |||
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.
there's a typo at the end of the line.
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.
Think I fixed this in ba2e993 . Would you prefer me to squash them?
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.
Oh sorry, I'm working through them one by one. bear with me.
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.
No prob :) Thanks for making the review!
| > | ||
| > > ## Solution | ||
| > > ~~~ | ||
| > > SELECT journal_title, count(*), avg(citation_count) |
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.
I think that should be title instead of journal_title?
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.
no, my bad. you're right!
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.
Thanks for actually checking the changes :) Think this is correct though, it's the column name from the journals table. On a side note, I'm not too happy with the column naming in the dataset in general, but we didn't dare touching that now since it's easy to introduce new errors.. But I would be happy to discuss a review of the dataset in the future (it would also be nice to remove one or two tables to spend less time on importing tables at the beginning of the workshop, from which there is little learning)
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, thanks! I did notice that you're right after I typed the comment! :) Always the way...
|
Thank you so much @danmichaelo @kyrretl :) |
See commit messages for details.
Hope it can be merged before Friday when I'm doing the workshop in Padova :)