Available from Amazon as Kindle eBook or paperback. I recommend reading the Kindle version in a web browser (Amazons cloud reader) or in the Kindle app. The Kindle eBook version is cheaper than the paperback version, and you can try out the code in SQL Server while you are reading.
Dynamic PIVOT statement (link)