Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Common Table Expressions   (RSS)

Recursive CTEs continued ...

In this post, I will finish the discussion of recursive CTEs that I began in my last post. I will continue to use the CTE examples from Books Online . To run these examples, you'll need to install the Adventure Works Cycles OLTP sample database . In my
Posted by craigfr | 0 Comments

Recursive CTEs

One of the most important uses of CTEs is to write recursive queries. In fact, CTEs provide the only means to write recursive queries. As I noted last week , there are several excellent CTE examples, including recursive CTE examples, in Books Online .
Posted by craigfr | 1 Comments

CTEs (Common Table Expressions)

CTEs or common table expressions, which are new in SQL Server 2005, provide an easy way to break a complex SQL statement down into smaller more manageable queries. CTEs are is some ways very much like views. Unlike a view which can be created once and
 
Page view tracker