<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ohbarye</author_name>
  <author_url>https://blog.hatena.ne.jp/ohbarye/</author_url>
  <blog_title>valid,invalid</blog_title>
  <blog_url>https://ohbarye.hatenablog.jp/</blog_url>
  <categories>
    <anon>SQL</anon>
    <anon>MySQL</anon>
  </categories>
  <description>SQLでパーセンタイル値を求めたいことがあり、Calculate Percentile Value using MySQL - Stack Overflowを参考に実現できた。 実例 口座 (accounts) テーブルで残高 (balance) column の95パーセンタイル値を求める。 SELECT balance FROM (SELECT @row_num := @row_num + 1 AS row_num, balance FROM accounts t, (SELECT @row_num := 0) counter ORDER BY balance) temp WHERE te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohbarye.hatenablog.jp%2Fentry%2F2021%2F07%2F18%2Fpercentile-in-sql&quot; title=&quot;SQLでパーセンタイル値を求める - valid,invalid&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>2021-07-18 17:52:22</published>
  <title>SQLでパーセンタイル値を求める</title>
  <type>rich</type>
  <url>https://ohbarye.hatenablog.jp/entry/2021/07/18/percentile-in-sql</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
