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

Cleanup and general fixes + added solutions to most exercises #57

Merged
merged 17 commits into from Sep 13, 2017

Conversation

danmichaelo
Copy link
Contributor

@danmichaelo danmichaelo commented Sep 12, 2017

See commit messages for details.

Hope it can be merged before Friday when I'm doing the workshop in Padova :)

kyrretl and others added 17 commits Sep 10, 2017
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. "
@@ -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).
Copy link
Collaborator

@icecjan icecjan Sep 13, 2017

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.

Copy link
Contributor Author

@danmichaelo danmichaelo Sep 13, 2017

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?

Copy link
Collaborator

@icecjan icecjan Sep 13, 2017

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.

Copy link
Contributor Author

@danmichaelo danmichaelo Sep 13, 2017

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!

Copy link
Collaborator

@icecjan icecjan left a comment

Thank you! :)

>
> > ## Solution
> > ~~~
> > SELECT journal_title, count(*), avg(citation_count)
Copy link
Collaborator

@icecjan icecjan Sep 13, 2017

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?

Copy link
Collaborator

@icecjan icecjan Sep 13, 2017

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!

Copy link
Contributor Author

@danmichaelo danmichaelo Sep 13, 2017

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)

Copy link
Collaborator

@icecjan icecjan Sep 13, 2017

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...

@icecjan icecjan merged commit 2f432e5 into data-lessons:gh-pages Sep 13, 2017
@icecjan
Copy link
Collaborator

@icecjan icecjan commented Sep 13, 2017

Thank you so much @danmichaelo @kyrretl :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants