<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>one-dang-khacdat</author_name>
  <author_url>https://blog.hatena.ne.jp/one-dang-khacdat/</author_url>
  <blog_title>Tech Waves</blog_title>
  <blog_url>https://tech-waves.hakuhodody-one.co.jp/</blog_url>
  <categories>
    <anon>実務お役立ち</anon>
    <anon>Google Cloud</anon>
    <anon>BigQuery</anon>
  </categories>
  <description>こんにちは。今回はBigQueryで実際に活用した再帰CTEについて紹介します。 この記事は次のユーザーを対象としています。 SQLの基本知識がある 再帰の基本概念を理解している 再帰CTE（Recursive CTE）とは 再帰CTEをBigQueryで作成する方法 ユースケース 現状 ゴール 実装方法 再帰分の説明 注意点 無限再帰に注意！ まとめ 再帰CTE（Recursive CTE）とは 再帰CTE（Common Table Expression：CTEを使用した再帰クエリ）とは、 自身を繰り返し参照しながらデータを取得するSQLの手法です。 通常、階層構造のデータ（組織ツリー、カテ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-waves.hakuhodody-one.co.jp%2Fentry%2Fbigquery-recursive-ctes&quot; title=&quot;BigQueryの再帰CTEを活用できた - Tech Waves&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/160051088/1758691665655519</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-21 12:00:00</published>
  <title>BigQueryの再帰CTEを活用できた</title>
  <type>rich</type>
  <url>https://tech-waves.hakuhodody-one.co.jp/entry/bigquery-recursive-ctes</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
