Joe Celko has a few books w.r.t to SQL and some of them are more than just SQL for beginners (covers tree/hierarchy data, thinking in sets, etc)