<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanmu-tech</author_name>
  <author_url>https://blog.hatena.ne.jp/kanmu-tech/</author_url>
  <blog_title>カンム テックブログ</blog_title>
  <blog_url>https://tech.kanmu.co.jp/</blog_url>
  <categories>
  </categories>
  <description>カンムでCOOをしています、achikuです。 ニッチすぎて誰に話しても「？」となるが、とにかく理解できて嬉しかったSQLの話をする。 誰かにこの感動を伝えたいのでコーヒーカップに向かってクエリの説明している— _achiku (@_achiku) February 21, 2021 話しを簡単にする為にコイントスを用いた例題で説明する。 問題 複数回のコイントスの結果(試行ID、裏が出たか表が出たか、トスした時間)を記録したデータがある。このデータを用いて試行回数t回目において何回連続で表が出たかを出力したい。なお、一度裏が出たら連続で表が出た回数は0にリセットされる。 問題を表で表現する …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.kanmu.co.jp%2Fentry%2F2021%2F06%2F23%2F095952&quot; title=&quot;時点tにおける連続で結果xが出た回数(結果yが出たら回数はリセットされる)を出す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/k/kanmu-tech/20210622/20210622213228.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-23 09:59:52</published>
  <title>時点tにおける連続で結果xが出た回数(結果yが出たら回数はリセットされる)を出すSQLを書いた</title>
  <type>rich</type>
  <url>https://tech.kanmu.co.jp/entry/2021/06/23/095952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
