I found this SQL style guide which looks good. I’m not a pro at SQL but it looks good to me. I mean, you use the style guide your boss wants you to use, or what all others use, but what if you could choose?

9 points

Almost every time I ask another dev about their preferred styling/formatting, they say they don’t really care as long as it’s all consistent. Automate something like sqlfluff with close to the default settings so you can limit that cognitive load and focus on coding.

permalink
report
reply
2 points

It makes sense, and would lead to cleaner diffs. Breaking my muscle memory for uppercase keywords would be tricky, though.

permalink
report
reply

SQL

!sql@programming.dev

Create post

Related Fediverse communities:

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

Community stats

  • 10

    Monthly active users

  • 25

    Posts

  • 71

    Comments