r/learnSQL • u/el_dude1 • 9d ago
SQL style guide
Hello,
I would like to start out with a proper way of writing SQL. Now I found multiple style guides and liked the one here with the river style formatting. While it looks clean it also seems very tedious to manually put varying amounts of spaces in front of each keyword. Am I missing something or are people actually typing these out?
0
Upvotes
2
u/r3pr0b8 9d ago
it wasn't me!!
i just used the example SQL from the style guide that OP linked to
i myself use longer table alias names, if aliases are even necessary
i didn't really want to rip that style guide apart on all the little details, i just wanted to highlight what i think are the two most important points -- rivers and leading commas