Found in 3 comments on Hacker News
cafard · 2015-08-14 · Original thread
For implementation of database systems, Gray and Reuter's Transaction Processing: Concepts and Techniques For the ideas behind relational databases, I like C.J. Date's Introduction to Database Systems,
1331 · 2010-05-22 · Original thread
I recommend two authors, listed below with Amazon links to their most famous books:

C. J. Date

Joe Celko

It shouldn't be pricey. I got a copy of the 7th edition hardcover for about $8. This one:

I doubt the concepts and mathematical model behind relational databases have changed that much between 1999 and 2003. :)

Also, most the code in the book is in a language called "Tutorial D", with asides about how it would look in SQL (and equally frequent complaints about how SQL fails to live up to the mathematical ideal of the relational model). It's not an SQL tutorial, but once you understand the relational model, you will probably be able to burn through tutorials -- it will just be learning syntax, not completely new ideas.

Fresh book recommendations delivered straight to your inbox every Thursday.