SE Using SQL provides a comprehensive walk through of the SQL language.
At the same time, this book will be a useful reference to someone who is
already an experienced database user and SQL programmer. It includes
lots of information that will help users build, maintain, and manage a
database. Topics covered include Database Design, Aggregating Query
Results, Organizing Query Results, Real World Issues, Database
Performance and Integrity, Database Security, Transactions, Stored
Procedures, Database Management, Writing a Custom Loader in Perl, ODBC,
DBI/DBD, JDBC, Web Publishing, and Tools for Web Publishing.