Fixing a typo and adding an alternative answer to one of the exercises in Chapter 6. #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
While working through the first edition of your book, I noticed that one of the answers in the try-it-yourself exercises for "Chapter 6: Joining Tables in a Relational Database" could be improved.
I propose and submit the following changes in this pull request:
FULL OUTER JOIN.Although this is a change to the supporting code for the first edition, I feel that it could be useful to other readers who, like myself, do not have access to the second edition of the book. Furthermore, it facilitates learning the different join types and how a problem such as this can be solved in multiple ways.
I also wanted to say that I am enjoying the book and I appreciate the work you've put into it and the supporting material. Please let me know if you'd like me to make improvements to the submitted changes or if you'd prefer the pull request to be closed.
Query Demonstration
As evidence that the query works the same as the separate queries, here are the results of the proposed query: