Inside Microsoft SQL Server 2005: T-SQL Querying

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 ...

See more details below
Paperback (REV)
$31.69
BN.com price
(Save 29%)$44.99 List Price
Other sellers (Paperback)
  • All (28) from $1.99   
  • New (1) from $0.00   
  • Used (27) from $1.99   
Sending request ...

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

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
Itzik 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

Read More Show Less

Product Details

  • ISBN-13: 9780735623132
  • Publisher: Microsoft Press
  • Publication date: 4/26/2006
  • Series: PRO-Developer
  • Edition description: REV
  • Pages: 640
  • Product dimensions: 7.52 (w) x 8.96 (h) x 1.56 (d)

Meet the Author

Dejan Sarka is a mentor with SolidQ and focuses on development of database and business intelligence applications. He is a frequent speaker at international conferences such as TechEd, SqlDevCon, and PASS. He is the founder of the Slovenian SQL Server and .NET Users Group. As main author or coauthor, Dejan has written nine books about SQL Server. He has also developed three courses for SolidQ: Data Modeling Essentials, Data Quality and Master Data Management, and Data Mining.

Read More Show Less

Table of Contents

Foreword;
Preface;
Acknowledgments;
Introduction;
Organization of This Book;
System Requirements;
Installing Sample Databases;
Updates;
Code Samples;
Support for This Book;
Chapter 1: Logical Query Processing;
Logical Query Processing Phases;
Sample Query Based on Customers/Orders Scenario;
Logical Query Processing Phase Details;
New Logical Processing Phases in SQL Server 2005;
Conclusion;
Chapter 2: Physical Query Processing;
Flow of Data During Query Processing;
Compilation;
Conclusion;
Chapter 3: 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;
Additional Resources;
Conclusion;
Chapter 4: Subqueries, Table Expressions, and Ranking Functions;
Subqueries;
Table Expressions;
Analytical Ranking Functions;
Auxiliary Table of Numbers;
Existing and Missing Ranges (Also Known as Islands and Gaps);
Conclusion;
Chapter 5: Joins and Set Operations;
Joins;
Set Operations;
Conclusion;
Chapter 6: Aggregating and Pivoting Data;
OVER Clause;
Tiebreakers;
Running Aggregations;
Pivoting;
Unpivoting;
Custom Aggregations;
Histograms;
Grouping Factor;
CUBE and ROLLUP;
Conclusion;
Chapter 7: TOP and APPLY;
SELECT TOP;
APPLY;
Solutions to Common Problems Using TOP and APPLY;
Conclusion;
Chapter 8: Data Modification;
Inserting Data;
Deleting Data;
Updating Data;
Other Performance Considerations;
Conclusion;
Chapter 9: Graphs, Trees, Hierarchies, and Recursive Queries;
Terminology;
Scenarios;
Iteration/Recursion;
Materialized Path;
Nested Sets;
Transitive Closure;
Conclusion;
Appendix A: Logic Puzzles;
Puzzles;
Puzzle Solutions;
Conclusion;
Appendix : About the Contributors;
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)