Publisher: Microsoft Press Released: March 2009 Pages: 832
Tackle the toughest set-based querying and query tuning problems—guided by an author team with in-depth, inside knowledge of T-SQL. Deepen your understanding of architecture and internals—and gain practical approaches and advanced techniques to optimize your code’s performance. Discover how to: - Move from procedural programming to the language of sets and logic
- Optimize query tuning with a top-down methodology
- Assess algorithmic complexity to predict performance
- Compare data-aggregation techniques, including new grouping sets
- Manage data modification—insert, delete, update, merge—for performance
- Write more efficient queries against partitioned tables
- Work with graphs, trees, hierarchies, and recursive queries
- Plus—Use pure-logic puzzles to sharpen your problem-solving skills
|
-
Chapter 1 Logical Query Processing -
Logical Query Processing Phases -
Sample Query Based on Customers/Orders Scenario -
Logical Query Processing Phase Details -
Further Aspects of Logical Query Processing -
Conclusion -
Chapter 2 Set Theory and Predicate Logic -
An Example of English-to-Mathematics Translation -
Set Theory -
Predicate Logic -
Relations -
A Practical Application -
Conclusion -
Chapter 3 The Relational Model -
Introduction to the Relational Model -
Relational Algebra and Relational Calculus -
Data Integrity -
Normalization and Other Design Topics -
Conclusion -
Chapter 4 Query Tuning -
Sample Data for This Chapter -
Tuning Methodology -
Tools for Query Tuning -
Index Tuning -
Preparing Sample Data -
An Examination of Set-Based vs. Iterative/Procedural Approaches and a Tuning Exercise -
Conclusion -
Chapter 5 Algorithms and Complexity -
Do You Have a Quarter? -
How Algorithms Scale -
Classic Algorithms and Algorithmic Strategies -
A Practical Application -
Conclusion -
Chapter 6 Subqueries, Table Expressions, and Ranking Functions -
Subqueries -
Table Expressions -
Analytical Ranking Functions -
Auxiliary Table of Numbers -
Missing and Existing Ranges (Also Known as Gaps and Islands) -
Conclusion -
Chapter 7 Joins and Set Operations -
Joins -
Set Operations -
Conclusion -
Chapter 8 Aggregating and Pivoting Data -
OVER Clause -
Tiebreakers -
Running Aggregations -
Pivoting -
Unpivoting -
Custom Aggregations -
Histograms -
Grouping Factor -
Grouping Sets -
Conclusion -
Chapter 9 TOP and APPLY -
SELECT TOP -
APPLY -
Solutions to Common Problems Using TOP and APPLY -
Logical Transformations -
Conclusion -
Chapter 10 Data Modification -
Inserting Data -
Deleting Data -
Updating Data -
Merging Data -
OUTPUT Clause -
Conclusion -
Chapter 11 Querying Partitioned Tables -
Partitioning in SQL Server -
Conclusion -
Chapter 12 Graphs, Trees, Hierarchies, and Recursive Queries -
Terminology -
Scenarios -
Iteration/Recursion -
Materialized Path -
Materialized Path with the HIERARCHYID Data Type -
Nested Sets -
Transitive Closure -
Conclusion -
Appendix A Logic Puzzles -
Puzzles -
Puzzle Solutions -
Conclusion -
Appendix About the Authors -
Itzik Ben-Gan -
Lubor Kollar -
Dejan Sarka -
Steve Kass |
- Title:
- Inside Microsoft® SQL Server® 2008: T-SQL Querying
- By:
- Itzik Ben-Gan, Lubor Kollar, Dejan Sarka, Steve Kass
- Publisher:
- Microsoft Press
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- March 2009
- Ebook:
- November 2009
- Pages:
- 832
- Print ISBN:
- 978-0-7356-2603-4
- | ISBN 10:
- 0-7356-2603-0
- Ebook ISBN:
- 978-0-7356-3050-5
- | ISBN 10:
- 0-7356-3050-X
|
Itzik Ben-Gan is a mentor and cofounder of Solid Quality Mentors. A Microsoft MVP for SQL Server since 1999, he teaches and consults internationally on T-SQL querying, programming, and query tuning. He's written numerous articles for SQL Server Magazine and MSDN and presented at Microsoft Tech Ed, DevWeek, PASS, and SQL Server Magazine Connections. Lubor Kollar is group program manager with the SQL Server Customer Advisory Team at Microsoft, working on the most challenging SQL Server deployments worldwide. He has 13+ years of experience with SQL Server development. Dejan Sarka, MCT, MCITP, MCDBA, is an MVP for SQL Server who develops database and business intelligence solutions. He is a mentor for Solid Quality Mentors and has presented at Tech Ed, PASS, and SQL Server DevCon. Steve Kass, PhD, is an MVP for SQL Server and a professor of mathematics and computer science. He has written for SQL Server Magazine and spoken at SQL Server Magazine Connections events. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By David Flanagan
October 1999
Ebook: $39.99
Print & Ebook: $54.99
Print: $49.99
By Elliotte Rusty Harold
August 2000
By E. A. Vander Veer, Chris Grover
May 2007
Ebook: $27.99
Print & Ebook: $38.49
Print: $34.99
|
Customer Reviews
|
|
|