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

Started rewriting Chapter 4 queries with CTEs for understanding and readability... #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsteelematc
Copy link

Great book ! ! !

I thought you might be interested in this alternative approach to writing queries with sub-queries, namely using CTEs (or the WITH clause). I find that CTE queries with reasonably good intermediate names, that get "enriched" and "transformed" on the way "down," make complex queries easier to grok.

Anyhow, I'm learning a lot from your book and use this technique personally to understand the "steps" of a complex query.

Thanks for writing an excellent book!

Tom

. With named intermediate steps

. That get "enriched" on the way down

Consider making a PR to show book author : - O

Great book ! ! !
@tsteelematc
Copy link
Author

Oh, you probably wouldn't really want to accept this PR as it's better that your GitHub repo looks like the code in the book. But a PR was a way for me to "share" this with you. Thanks again!

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