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

ADR: key decisions in constructing sql queries #32

Closed
machow opened this issue May 12, 2019 · 1 comment
Closed

ADR: key decisions in constructing sql queries #32

machow opened this issue May 12, 2019 · 1 comment

Comments

@machow
Copy link
Owner

machow commented May 12, 2019

References

  • Variable defined in select can't be referenced in where clause. SO Post
  • Variable defined in select can't be referenced by subsequent column defs

Strategies to document

  • arrange modifies order by clause, so does not need to create new query if referencing a just defined column
  • filter modifies where clause, so does need to create new query if...
    • referencing just created column
    • using window / aggregate expressions
@machow
Copy link
Owner Author

machow commented May 19, 2019

whoops, duplicate of #24, copied contents from here to there

@machow machow closed this as completed May 19, 2019
@machow machow added this to siuba Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant