Found in 1 comment on Hacker News
tumba · 2016-11-03 · Original thread
I highly recommend Joe Celko's book, SQL Programming Style. [1] He does deal with formatting, but offers a comprehensive usage standard that goes beyond readability to discussing thorny issues like the taxonomy of words like "type," "category," and "code," as well as referencing relevant international standards for identifier naming.

[1] https://www.amazon.com/Celkos-Programming-Kaufmann-Managemen...

Fresh book recommendations delivered straight to your inbox every Thursday.