I understand there are differences between DB vendors, but my question is about general patterns and best practices.
I understand there are differences between DB vendors, but my question is about general patterns and best practices.
https://www.amazon.com/SQL-Pocket-Guide-Jonathan-Gennick/dp/...
Actually both are worth reading to discuss differences in philosophy (e.g. "no NULLs" vs 4-valued logic including "unknown" and "not applicable" NULLs).
[1] https://www.amazon.com/Introduction-SQL-Mastering-Relational...
[2] https://www.amazon.com/Relational-Model-Database-Management-...
Yes, I meant C.J. Date's "Introduction to SQL".
I was trying to get a link to the latest edition which appeared to be the 2nd link on an Amazon search for "Date introduction to SQL"... anyway, it is continuously edited so it's worth seeking the latest version which has twice as many pages as some of the earlier ones.
> What's the canonical reference book
> one should go to regarding SQL?
> (ie K&R is the book you go to for C)
>
> I understand there are differences between DB vendors,
> but my question is about general patterns and best practices.
For 10 years I've looked and never found one. I find Chris Date pedantic. The rest are a mish-mash of cookbooks, vendor-specific ones, and some that try to be the general guide you're looking for but collapse beneath the weight of hundreds of pages of prose that seems to have been written by a committee of robots.Just be aware that he is an academic, so I might compare him more to A.S.Tanenbaum than K&R :-)
[1] http://infolab.stanford.edu/~ullman/ [2] http://infolab.stanford.edu/~ullman/dscb.html#slides
https://lagunita.stanford.edu/courses/DB/2014/SelfPaced/abou...