Common Table Expressions (CTE)

CTEs and Trees

  • Article

Some new interresting points about trees and CTE in SQL Server : transforming a tree from auto reference to interval model (nested sets), calculating levels in interval model, creating a view of auto ref from an interval model, hierarchical numbering of items, and more. This article includes more examples based on his previous work.

4.11 (9)

2007-12-26

5,568 reads

Blogs

Getting the Proc Code–#SQLNewBlogger

By

Another post for me that is simple and hopefully serves as an example for...

Running SQL Server in Google Cloud Platform

By

On a few occasions I’ve referred to GCP (Google Cloud Platform) as the “Windows...

More ADLS Gen2 enhancements

By

On the heels of More Azure Blob Storage enhancements come more enhancements for Azure...

Read the latest Blogs

Forums

How to change the Scan to Seek and optimize

By sizal0234

Hello, Attached sample query and actual plan, I want to further optimize the query...

Availability Groups with Docker Containers

By rafaelrodrigues

Comments posted to this topic are about the item Availability Groups with Docker Containers

Daily Coping 6 Jun 2020

By Steve Jones - SSC Editor

Today’s tip is to think of something you’ve always wanted to do and never...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers