<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>todays_mitsui</author_name>
  <author_url>https://blog.hatena.ne.jp/todays_mitsui/</author_url>
  <blog_title>無駄と文化</blog_title>
  <blog_url>https://blog.mudatobunka.org/</blog_url>
  <categories>
    <anon>BigQuery</anon>
    <anon>SQL</anon>
  </categories>
  <description>モチベーション SQL を書いていると期間をもとに日付を列挙したくなることが稀によくある。書き方を見てみよう。 免責事項 本記事は BigQuery を前提にしています。紹介している generate_date_array 関数は MySQL/PostgreSQL には存在しない BigQuery 独自の機能 です。 ちなみに PostgreSQL では generate_series 関数を使って同様のことができるらしいです。 unnest(generate_date_array(...)) を使おう 手元に START_DATE, END_DATE の値があるとして、 select d f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.mudatobunka.org%2Fentry%2F2025%2F08%2F25%2F100000&quot; title=&quot;【SQL】期間を指定して日付を列挙する - 無駄と文化&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-ak.f.st-hatena.com/images/fotolife/t/todays_mitsui/20250823/20250823012506.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-25 10:00:00</published>
  <title>【SQL】期間を指定して日付を列挙する</title>
  <type>rich</type>
  <url>https://blog.mudatobunka.org/entry/2025/08/25/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
