APPLY

External Article

SQL Server CROSS APPLY and OUTER APPLY Helpful Examples

  • Article

Microsoft introduced the APPLY operator in SQL Server 2005. Similar to a JOIN, it allows correlation between two table expressions. The key difference between the JOIN and APPLY operators is when you have a table-valued expression on the right side and want to evaluate it for each row from the left table expression. Since they produce similar results, when do you choose an APPLY versus a JOIN?

2025-11-07

Technical Article

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. 

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2019-11-24

997 reads

Technical Article

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. 

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2019-11-12 (first published: )

2,217 reads

Blogs

Postgres data in Snowflake in under a minute, without an ETL pipeline

By

We spent two days benchmarking Snowflake Postgres mirroring under load. Postgres data reached Snowflake...

Why your data strategy and AI strategy should be one

By

When data and AI strategies compete for the same platform, teams duplicate work and...

Microsoft Ignite Announcements Nov 2026

By

Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...

Read the latest Blogs

Forums

Bca Kantor Cabang Pembantu.Tlp/wa;08218168235

By christy.umoren

Bca Kantor Cabang Pembantu.Tlp/wa;08218168235Jl. Raya Klp. Hybrida No.RT.10 Blok PF 21 No.8, RT.10/RW.3, Pegangsaan...

BCA KCU MUARA KARANG Tlpn(CS):082126922251

By christy.umoren

BCA KCU MUARA KARANG Tlpn(CS):082126922251 Jl. Muara Karang Timur, Blok B VIII No.116-117, RT.6/RW.12,...

BCA KCP SemperTlp/wa;08218168235

By christy.umoren

BCA KCP SemperTlp/wa;08218168235Jl. Plumpang Semper No.02, RT.10/RW.2, Tugu Sel., Kec. Koja, Jkt Utara, Daerah...

Visit the forum

Question of the Day

Severe Errors

Which class of errors are automatically written to the error log?

See possible answers