Industrial-Sized Deals Best Books of the Month Shop Women's Handbags Learn more nav_sap_plcc_6M_fly_beacon Deradoorian Fire TV Stick Subscribe & Save Shop Popular Services tmnt tmnt tmnt  Amazon Echo Starting at $99 Kindle Voyage Disney Infinity 3.0 Gear Up for Football Deal of the Day
Microsoft SQL Server 2012 High-Performance T-SQL Using Wi... and over one million other books are available for Amazon Kindle. Learn more

Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions (Developer Reference) 1st Edition

16 customer reviews
ISBN-13: 978-0735658363
ISBN-10: 0735658366
Why is ISBN important?
ISBN
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Sell yours for a Gift Card
We'll buy it for $9.58
Learn More
Trade in now
Have one to sell? Sell on Amazon
Buy used
$20.60
Buy new
$26.17
More Buying Choices
26 New from $21.44 12 Used from $20.60
Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student


InterDesign Brand Store Awareness Textbooks
$26.17 FREE Shipping on orders over $35. In Stock. Ships from and sold by Amazon.com. Gift-wrap available.

Frequently Bought Together

Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions (Developer Reference) + Microsoft SQL Server 2012 T-SQL Fundamentals (Developer Reference)
Price for both: $58.72

Buy the selected items together

Editorial Reviews

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

NO_CONTENT_IN_FEATURE


Best Books of the Month
Best Books of the Month
Want to know our Editors' picks for the best books of the month? Browse Best Books of the Month, featuring our favorite new books in more than a dozen categories.

Product Details

  • Series: Developer Reference
  • Paperback: 244 pages
  • Publisher: Microsoft Press; 1 edition (April 25, 2012)
  • Language: English
  • ISBN-10: 0735658366
  • ISBN-13: 978-0735658363
  • Product Dimensions: 7.3 x 0.7 x 8.9 inches
  • Shipping Weight: 13.6 ounces (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Best Sellers Rank: #281,098 in Books (See Top 100 in Books)

More About the Author

Itzik Ben-Gan is a Mentor and Co-Founder of SolidQ. A SQL Server Microsoft MVP (Most Valuable Professional) since 1999, Itzik has delivered numerous training events around the world focused on T-SQL Querying, Query Tuning and Programming. Itzik is the author of several books including Microsoft SQL Server 2012 T-SQL Fundamentals and Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions. He has written many articles for SQL Server Pro as well as articles and whitepapers for MSDN. Itzik's speaking activities include TechEd, DevWeek, SQLPASS, SQL Server Magazine Connections, various user groups around the world, and SolidQ's events to name a few. Itzik is the author of SolidQ's Advanced T-SQL Querying, Programming and Tuning and T-SQL Fundamentals courses along with being a primary resource within the company for their T-SQL related activities.
For more details please visit http://tsql.solidq.com.

Customer Reviews

Most Helpful Customer Reviews

22 of 22 people found the following review helpful By Dr. Robotnik on May 25, 2012
Format: Paperback Verified Purchase
This book is a refreshing alternative to the usual 900 page everything-and-the-kitchen sink tomes that seem to dominate this genre.

Instead, it is focused and concise (200+ pages). And extremely well-written, by someone who clearly takes his teaching role seriously. Beyond just describing how to use the window functions, it does a great job of delving into the background needed to really understand how & why they work as they do.

In addition to describing SQL Server 2012 support for window functions, the book also details those areas in which full support for standard SQL window functions has not yet been implemented in SQL Server. It also suggests improvements that could be made to both the standard and to MS SQL.

Whenever possible, the book gives alternative queries constructed without the use of window functions. This is great as both a learning tool, and to convince you that in general you don't really want to go that route (non-window) if at all possible.

If you want to learn both the subtleties and quotidian uses of SQL window functions, get this book. Your brain will light up with new possibilities.

(If it helps credibility-wise, check out my mostly negative review of the same author's "Inside Microsoft SQL Server 2005: T-SQL Programming"--I am the proud holder of the "Most Helpful Critical Review" honor for that title. Ben-Gan's lucidity has increased considerably with this current effort.)
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
14 of 15 people found the following review helpful By SQL Learner on August 20, 2012
Format: Paperback
One of the good "Cheat" book I came across. Yes, I agree with many that there is no doubt Itzik Ben-Gan is one of the great T-SQL experts in the industry. Initially I thought many of the functions he described cannot be used in OLTP model. Very quickly I realized I was wrong to some extent, I had to identify duplicate entries and Islands and the queries were right there. But I think I will stick to my Original Comment - the book is very specific for certain window function as the title suggests which are - ranking, distribution, ordering, getting ranges, gaps, island, duplicates, running totals, packing intervals, aggregates and finally optimizing them. Ofcourse that's what the title suggest (Window Functions..) and is very well concised in 200 odd pages when compared to 900 or so in other books. Actually I was expecting - to know different alternatives for creating such functions, which I did not find much. There is a mention of CLR, but one should be good with .NET coding. My final conclusion would be go for the book in case you have to deal a lot with analytical type of coding. This is the book, where we can simply use the proven logic.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By HighTech on October 5, 2012
Format: Paperback Verified Purchase
Since I actually used the sample chapters to solve a problem with updating all duplicate rows except the first duplicate in a set of duplicates I thought I should break down and buy the book. I consider it somewhat of a brain twister and will use this to further my query expertise. I am one of those DBA's that has so many instances to manage that I rarely ever get to do any coding for many years now. I am hoping this helps bring back some, and develope new, skills. I also decided to get the fundamentals book and will switch between the 2.
For now i will give this 5 stars but I still think it could be made simpler and more practical for us 'regular' users. I will say the accuracy of the book and samples seems pretty good so far which is nice since it can be annoying when you run into samples you are trying to learn from that don't work in some articles by other authors I have read. This authors material and books seem very accurate.
I wonder if regular expressions would be useful with these functions?
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By John R. Spencer on November 11, 2012
Format: Paperback Verified Purchase
The book has proven invaluable on the job in a current project.
I had used 'window' functions in the past; however, I truly did not have a real understanding of what 'result set' I was working with. And, as correctly stated, performance was 'blazing' now that the use of a 'window' function is known to be using the current result set. While probably not a 'nugget' for SQL experts, just realizing that proved a real 'tip'...

I have used other books by the author and found his instructional style quite pleasing to deal with considering the 'complexity' of how one 'should' think when dealing with SQL.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 5 people found the following review helpful By John on June 3, 2012
Format: Paperback
Worth every penny. Every chapter is packed with new tools for your toolbox. I am wrapping up a project that would not have been possible without these window functions.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
1 of 1 people found the following review helpful By Marlon A. Ribunal on November 30, 2012
Format: Paperback
Let's take a look at this: You're required to Rank all Items Sold this year ("Rank all items") by Sales ($), and on the same data set, rank them within their respective categories ("Rank within rank").

Ok, you can probably code this in a couple of minutes. I see that you can achieve this by CTE's and Subqueries, etc.

But you can achieve the same result in fewer lines of code using Window Functions. And, you'll make your DBA very happy with the performance gained from using Window Functions.

I think you should read this book.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
3 of 4 people found the following review helpful By Guna on July 25, 2012
Format: Paperback Verified Purchase
Initially I had a doubt before buying this book regarding the content and how clearly does it explain the Window Functions concepts. But Author Itzik Ben - Gan has given a detailed explanation of Different types of Window Functions supported in SQL Server, what the Standard SQL supports and at one point he explained a feature present in Teradata. I recommend this book to people who want to take advantage by using Windows Functions
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions (Developer Reference)
This item: Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions (Developer Reference)
Price: $26.17
Ships from and sold by Amazon.com

Want to discover more products? Check out these pages to see more: programming, sql server