Inside Microsoft SQL server 2008 T-SQL querying - Ben-Gan ,Itzik (Microsoft Press, 2009)