Delve into the internal architecture of T-SQL_and unveil the power of set-based querying_with comprehensive reference and advice from a highly regarded T-SQL expert and members of Microsoft's SQL Server development team. Database developers and administrators will examine the best practices, advanced techniques, sample databases, and code needed to master the programming language built into SQL Server_solving complex problems with real-world solutions. _ Understand logical and physical query processing _ Learn about set theory, predicate logic, and the relational model _ Apply a methodology to optimize query tuning _ Analyze the algorithmic complexity of your queries _ Solve relational division problems _ Use CTEs and ranking functions to simplify and optimize solutions _ Aggregate data with various techniques, including tiebreakers, pivoting, histograms, grouping factors, and grouping sets _ Use the TOP option to query and modify data _ Use the MERGE statement to modify data based on conditional logic _ Maintain and query graph structures with the HIERARCHYID datatype, recursive queries, and other solutions _ PLUS_Improve your logic and get to the heart of querying problems with logic puzzles All the book_s code samples will be available for download from the companion Web site. .
Inside Microsoft® SQL Server® 2008 : T-SQL Querying