A classic and standard reference for SQL and for relational database concepts is the book by Date [15]. The on-line documentation on MySQL at [35] contains a detailed tutorial. Same is the case with the on-line documentation for MySQL++ at [36].