What is a good book to become an SQL master? That is, learn how to tweak queries, table design, optimizing the server, etc.
I use mostly MySQL and Postgres, but maybe a DBMS agnostic book would come handy. The "optimizing the server" part is probably specific to each DBMS.
I would like to know of a good book to learn advanced SQL and database design which would help someone become the DB Admin.