cross apply

Function and Queries to Convert Hierarchical Adjacency to Nested Json Arrays

  • Script

This script converts hierarchical adjacency into nested json rows which contain the recursive "downlines" of each node.  The table-valued function treats each row in the original adjacency as the root node in a recursive common table expression. 

2019-11-24

80 reads

Function and Queries to Convert Hierarchical Adjacency to Nested Json Arrays

  • Script

This script converts hierarchical adjacency into nested json rows which contain the recursive "downlines" of each node.  The table-valued function treats each row in the original adjacency as the root node in a recursive common table expression. 

2019-11-12 (first published: )

480 reads

Function and Queries to Convert Hierarchical Adjacency to Nested Json Arrays

  • Revision

This script converts hierarchical adjacency into nested json rows which contain the recursive "downlines" of each node.  The table-valued function treats each row in the original adjacency as the root node in a recursive common table expression. 

2019-11-08

1 reads

Parse Data from a Field Containing Multiple Values using CROSS APPLY

  • Article

It is possible for a field in a character-delimited text file to contain a list of further-delimited values instead of the customary single value. This article demonstrates how to load such a file into a staging table, then use a CROSS APPLY query to parse the list of values into a related table.

3.27 (15)

2019-06-07 (first published: )

8,262 reads

Blogs

Who needs data access? Not You!

By

With a little planning and care, we can find various ways to fulfill user...

Azure Synapse Analytics & Power BI performance

By

With two new relational database features (Result-set caching and Materialized Views) just GA’d in...

Session Evaluations from “SQL Server Security from the Ground Up”

By

I was recently given the opportunity to speak at Pass Summit. As always (this...

Read the latest Blogs

Forums

Moving a Default Schema

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Moving a Default Schema

Using the Lightweight Tools

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Using the Lightweight Tools, which...

Data drive

By Admingod

Data drive is full not the log space. If it is ldf then yes,...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers