<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Sampo</author_name>
  <author_url>https://blog.hatena.ne.jp/Sampo/</author_url>
  <blog_title>エムスリーテックブログ</blog_title>
  <blog_url>https://www.m3tech.blog/</blog_url>
  <categories>
    <anon>BigQuery</anon>
    <anon>SQL</anon>
  </categories>
  <description>データ基盤チーム &amp; Unit9（エビデンス創出プロダクトチーム）ブログリレー 4日目は、SQLプログラミングのお話をお届けします。Unit9エンジニアの三浦[記事一覧 ]です。昨日は木田さんの『巨大テーブルにインデックスを追加したい、Flywayで』でした。 今回の課題はタイトル通り、月の集合（たとえば、ユーザーがアクティブであった月の集合）から「何年何月から何年何月まで連続していた（アクティブだった）」という期間の集合に変換せよというものです。連続した期間ってのがまとまっていると判定で便利な局面があるんですよね。具体的にどう役に立つかは後述しますが、大変に実用を意識したデータ基盤プログラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.m3tech.blog%2Fentry%2Fextract-continuous-periods-sql&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-11 18:35:41</published>
  <title>SQL課題：月の集合を連続した期間の集合にまとめてください</title>
  <type>rich</type>
  <url>https://www.m3tech.blog/entry/extract-continuous-periods-sql</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
