We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are - or become - political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
As others have said - the Dummies books are fine. The O'Reilly books are good too - there's a bunch of them though, you'd probably want the "Learning SQL" one to start with.
Beyond that, you can probably pick stuff up on the job - looking at other peoples queries etc.
Knowing what implementation you'll be using will help too, as they all have their little quirks and non-standard bits and bobs which can make life easier.
For what you want to do - writing standard queries (which is what you'd need to do as an analyst) - then SQL doesn't change much (if at all) over time, so an older book would be fine. Most of the changes are behind the scenes stuff which you'd only need to know if you're a DBA, working on the infastructure or writing very complex queries (which you won't be, at least to start with).