<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Database Design on Move into the Future</title><link>/tags/database-design/</link><description>Recent content in Database Design on Move into the Future</description><generator>Hugo -- gohugo.io</generator><copyright>Copyright © 2016-2026 Jim Chng. All Rights Reserved.</copyright><lastBuildDate>Sat, 10 May 2025 10:00:00 +0800</lastBuildDate><atom:link href="/tags/database-design/index.xml" rel="self" type="application/rss+xml"/><item><title>Taming Hierarchical Data: Mastering SQL Recursive CTEs for Advanced Tag Management</title><link>/blog/2025/05/taming-hierarchical-data-mastering-sql-recursive-ctes-for-advanced-tag-management/</link><pubDate>Sat, 10 May 2025 10:00:00 +0800</pubDate><guid>/blog/2025/05/taming-hierarchical-data-mastering-sql-recursive-ctes-for-advanced-tag-management/</guid><description><![CDATA[<p>Hierarchical data structures are everywhere in modern applications, from e-commerce categories to knowledge bases. This comprehensive guide demonstrates how SQL&rsquo;s recursive Common Table Expressions (CTEs) elegantly solve the challenges of nested taxonomies without complex application code. Learn how to build a complete tag hierarchy system, navigate parent-child relationships efficiently, generate breadcrumb trails, prevent cyclic references, and implement powerful content filtering—all with clean, maintainable SQL queries that scale with your data&rsquo;s complexity.</p>]]></description><enclosure url="/blog/2025/05/taming-hierarchical-data-mastering-sql-recursive-ctes-for-advanced-tag-management/featuresqlblog.png" length="1407012" type="image/png"/></item></channel></rss>