LEADER 04631nam 22006255 450 001 9910349524803321 005 20200702012522.0 010 $a1-4842-5197-0 024 7 $a10.1007/978-1-4842-5197-3 035 $a(CKB)4100000009606162 035 $a(MiAaPQ)EBC5966664 035 $a(DE-He213)978-1-4842-5197-3 035 $a(CaSebORM)9781484251973 035 $a(OCoLC)1138875712 035 $a(OCoLC)on1138875712 035 $a(EXLCZ)994100000009606162 100 $a20191021d2019 u| 0 101 0 $aeng 135 $aurcnu|||||||| 181 $ctxt$2rdacontent 182 $cc$2rdamedia 183 $acr$2rdacarrier 200 10$aExpert T-SQL Window Functions in SQL Server 2019 $eThe Hidden Secret to Fast Analytic and Reporting Queries /$fby Kathi Kellenberger, Clayton Groom, Ed Pollack 205 $a2nd ed. 2019. 210 1$aBerkeley, CA :$cApress :$cImprint: Apress,$d2019. 215 $a1 online resource (221 pages) 300 $aIncludes index. 311 $a1-4842-5196-2 327 $a1. Looking through the Window -- 2. Discovering Ranking Functions.-3. Summarizing with Window Aggregates -- 4. Calculating Running and Moving Aggregates -- 5. Adding Frames to the Window -- 6. Taking a Peek at Another Row -- 7. Understanding Statistical Functions -- 8. Tuning for Better Performance -- 9. Hitting a Home Run with Gaps, Islands, and Streaks -- 10. Time Range Calculations -- 11. Time Trend Calculations. 330 $aBecome an expert who can use window functions to solve T-SQL query problems. Replace slow cursors and self-joins with queries that are easy to write and perform better. This new edition provides expanded examples, including a chapter from the world of sports, and covers the latest performance enhancements through SQL Server 2019. Window functions are useful in analytics and business intelligence reporting. They came into full blossom with SQL Server 2012, yet they are not as well known and used as often as they ought to be. This group of functions is one of the most notable developments in SQL, and this book shows how every developer and DBA can benefit from their expressive power in solving day-to-day business problems. Once you begin using window functions, such as ROW_NUMBER and LAG, you will discover many ways to use them. You will approach SQL Server queries in a different way, thinking about sets of data instead of individual rows. Your queries will run faster, be easier to write, and easier to deconstruct, maintain, and enhance in the future. Just knowing and using these functions is not enough. You also need to understand how to tune the queries. Expert T-SQL Window Functions in SQL Server clearly explains how to get the best performance. The book also covers the rare cases when older techniques are the best bet. You will: Solve complex query problems without cumbersome self-joins that run slowly and are difficult to read Create sliding windows in a result set for computing such as running totals and moving averages Return aggregate and detail data simultaneously from the same SELECT statement Compute lag and lead and other values that access data from multiple rows in a result set Understand the OVER clause syntax and how to control the window Avoid framing errors that can lead to unexpected results. 606 $aDatabase management 606 $aProgramming languages (Electronic computers) 606 $aMicrosoft software 606 $aMicrosoft .NET Framework 606 $aDatabase Management$3https://scigraph.springernature.com/ontologies/product-market-codes/I18024 606 $aProgramming Languages, Compilers, Interpreters$3https://scigraph.springernature.com/ontologies/product-market-codes/I14037 606 $aMicrosoft and .NET$3https://scigraph.springernature.com/ontologies/product-market-codes/I29030 615 0$aDatabase management. 615 0$aProgramming languages (Electronic computers). 615 0$aMicrosoft software. 615 0$aMicrosoft .NET Framework. 615 14$aDatabase Management. 615 24$aProgramming Languages, Compilers, Interpreters. 615 24$aMicrosoft and .NET. 676 $a005.7565 700 $aKellenberger$b Kathi$4aut$4http://id.loc.gov/vocabulary/relators/aut$0879538 702 $aGroom$b Clayton$4aut$4http://id.loc.gov/vocabulary/relators/aut 702 $aPollack$b Ed$4aut$4http://id.loc.gov/vocabulary/relators/aut 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910349524803321 996 $aExpert T-SQL Window Functions in SQL Server 2019$92513944 997 $aUNINA