Skip to content

Instantly share code, notes, and snippets.

@brianspiering
Created May 9, 2022 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianspiering/3acee433c1d1f885b1ad92f2cb3765f1 to your computer and use it in GitHub Desktop.
Save brianspiering/3acee433c1d1f885b1ad92f2cb3765f1 to your computer and use it in GitHub Desktop.
SQL style example
select f.foo,
b.bar,
case
when f.foo = 'hello'
then 'goodbye'
else b.bar
end as something_calculated,
some_long_expression
from fooz f
join baz b
on f.baz_id = b.id
where b.bar is not null
and f.foo <> 'something random'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment