Overview
Take a detailed look at the internal architecture of T-SQL—and unveil the power of set-based querying—with comprehensive reference and advice from the experts. Database developers and administrators get best practices, sample databases, and code to master the intricacies of the programming language—solving complex problems with real-world solutions.
Discover how to:
- Understand logical and physical query processing
- Apply a methodology to optimize query tuning
- Solve relational division problems
- Use CTEs and ranking functions to simplify and optimize solutions
- Aggregate data with various techniques, including tiebreakers, pivoting, histograms, and grouping factors
- Use the TOP option in a query to modify data
- Query specialized data structures with recursive logic, materialized path, or nested sets solutions
- PLUS—Improve your logic and get to the heart of querying problems with logic puzzles
Get code and database samples on the Web
Synopsis
This thorough, hands-on reference for database developers and administrators delivers expert guidance on sophisticated uses of Transact-SQL (T-SQL)-one of the most familiar and powerful programming languages for SQL Server. Written by a T-SQL guru, this guide focuses on advanced querying techniques and how queries are interpreted and processed by the SQL Server execution engine. You'll get in-depth coverage of the sophisticated uses of T-SQL, including the differences between logical and physical processing, nesting of queries, and much more. The book explains and compares solutions to database-development problems in both SQL Server 2000 and SQL Server 2005, discussing the new T-SQL programming features added to SQL Server 2005 in detail. Includes extensive code samples, table examples, and logic puzzles to help database developers and administrators understand the intricacies and help promote mastery of T-SQL.
Editorials
From Barnes & Noble
The Barnes & Noble ReviewItzik Ben-Gan, a Microsoft MVP for SQL Server since 1999, is among the world’s leading T-SQL consultants. Now, he’ll help you write T-SQL queries of exceptional power, and supercharge queries that already exist. From temporary tables to dynamic execution, his new book will give you mastery of advanced constructs many SQL Server programmers don’t dare to use.
Ben-Gan offers powerful insight into how SQL Server transforms logical queries into executable query plans -- and how to write code that generates far more efficient plans. He focuses heavily on set-based techniques but also covers cursors when they still make sense. Among this book’s many highlights: a systematic query tuning methodology he developed for his own company.
If you like what he’s done here -- and you will -- also check out his brand-new Inside Microsoft SQL Server 2005: T-SQL Programming, arguably the most useful advanced T-SQL programming reference ever written. Bill Camarda, from the June 2006 Read Only