Common Table Expressions Joes 2 Pros
Author | : Steve Stedman |
Publisher | : |
Total Pages | : 244 |
Release | : 2013-05-01 |
ISBN-13 | : 193966618X |
ISBN-10 | : 9781939666185 |
Rating | : 4/5 (85 Downloads) |
Download or read book Common Table Expressions Joes 2 Pros written by Steve Stedman and published by . This book was released on 2013-05-01 with total page 244 pages. Available in PDF, EPUB and Kindle. Book excerpt: The Common Table Expression (CTE) is one of the more powerful and often overlooked features in Microsoft SQL Server. This Joes 2 Pros book will show some of the more interesting things you can do with a CTE. We will learn how CTEs are a great alternative to derived table queries, how to do data paging with a CTE, and recursive queries with tree path and hierarchical output. This book will also cover how to use the DELETE, UPDATE, and INSERT statements with a CTE, and how to use CTEs in stored procedures and functions. We will discover what is good and bad with CTEs when it comes to performance, and how to avoid performance pitfalls. The twelve chapters take us from the most basic introduction of a CTE all the way to the more complex usage scenarios where a CTE can change the way you look at writing T-SQL queries. Learn how to use a single CTE or multiple CTEs in a single statement as well as nesting them.