Skip to content

Clarify self-join query execution order in lesson 14#27

Open
harjeet2020 wants to merge 1 commit intobtholt:mainfrom
harjeet2020:selfjoin-clarification
Open

Clarify self-join query execution order in lesson 14#27
harjeet2020 wants to merge 1 commit intobtholt:mainfrom
harjeet2020:selfjoin-clarification

Conversation

@harjeet2020
Copy link
Copy Markdown

The query in lesson 14 (self-join) is somewhat confusing; ON ... AND c2.language = 'en' and WHERE ... c2.language IS NULL seem like contradictory checks at first glance. I added a blockquote with an explanation that the join condition happens first, and that it is crucial for the query - otherwise each row would just match to itself, and final query would always return 0 rows.

Explain why AND c2.language = 'en' join condition is necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant