Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions [NOOK Book]

Overview

Apply powerful window functions in T-SQL—and increase the performance and speed of your queries

Optimize your queries—and obtain simple and elegant solutions to a variety of problems—using window functions in Transact-SQL. Led by T-SQL expert Itzik Ben-Gan, you’ll learn how to apply calculations against sets of rows in a flexible, clear, and efficient manner. Ideal whether you’re a database administrator or developer, this practical guide ...

See more details below
Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$16.49
BN.com price
(Save 45%)$29.99 List Price

Overview

Apply powerful window functions in T-SQL—and increase the performance and speed of your queries

Optimize your queries—and obtain simple and elegant solutions to a variety of problems—using window functions in Transact-SQL. Led by T-SQL expert Itzik Ben-Gan, you’ll learn how to apply calculations against sets of rows in a flexible, clear, and efficient manner. Ideal whether you’re a database administrator or developer, this practical guide demonstrates ways to use more than a dozen T-SQL querying solutions to address common business tasks.

Discover how to:

  • Go beyond traditional query approaches to express set calculations more efficiently
  • Delve into ordered set functions such as rank, distribution, and offset
  • Implement hypothetical set and inverse distribution functions in standard SQL
  • Use strategies for improving sequencing, paging, filtering, and pivoting
  • Increase query speed using partitioning, ordering, and coverage indexing
  • Apply new optimization iterators such as Window Spool
  • Handle common issues such as running totals, intervals, medians, and gaps
Read More Show Less

Product Details

  • ISBN-13: 9780735672543
  • Publisher: Pearson Education
  • Publication date: 4/29/2012
  • Series: Developer Reference
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 244
  • Sales rank: 468,074
  • File size: 4 MB

Meet the Author

Itzik Ben-Gan is a principal mentor and a founder of SolidQ. A Microsoft MVP for SQL Server since 1999, Itzik teaches and consults internationally on T-SQL querying, programming, and query tuning. He has written numerous articles for SQL Server Magazine and MSDN, and speaks at industry events such as Microsoft TechEd, DevWeek, PASS, and SQL Server Connections.

Read More Show Less

Table of Contents

Foreword;
Introduction;
Who Should Read This Book;
Organization of This Book;
System Requirements;
Code Samples;
Acknowledgments;
Errata & Book Support;
We Want to Hear from You;
Stay in Touch;
Chapter 1: SQL Windowing;
1.1 Background of Window Functions;
1.2 A Glimpse of Solutions Using Window Functions;
1.3 Elements of Window Functions;
1.4 Query Elements Supporting Window Functions;
1.5 Potential for Additional Filters;
1.6 Reuse of Window Definitions;
1.7 Summary;
Chapter 2: A Detailed Look at Window Functions;
2.1 Window Aggregate Functions;
2.2 Ranking Functions;
2.3 Distribution Functions;
2.4 Offset Functions;
2.5 Summary;
Chapter 3: Ordered Set Functions;
3.1 Hypothetical Set Functions;
3.2 Inverse Distribution Functions;
3.3 Offset Functions;
3.4 String Concatenation;
3.5 Summary;
Chapter 4: Optimization of Window Functions;
4.1 Sample Data;
4.2 Indexing Guidelines;
4.3 Ranking Functions;
4.4 Improved Parallelism with APPLY;
4.5 Aggregate and Offset Functions;
4.6 Distribution Functions;
4.7 Summary;
Chapter 5: T-SQL Solutions Using Window Functions;
5.1 Virtual Auxiliary Table of Numbers;
5.2 Sequences of Date and Time Values;
5.3 Sequences of Keys;
5.4 Paging;
5.5 Removing Duplicates;
5.6 Pivoting;
5.7 TOP N Per Group;
5.8 Mode;
5.9 Running Totals;
5.10 Max Concurrent Intervals;
5.11 Packing Intervals;
5.12 Gaps and Islands;
5.13 Median;
5.14 Conditional Aggregate;
5.15 Sorting Hierarchies;
5.16 Summary;

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)