<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngyuki</author_name>
  <author_url>https://blog.hatena.ne.jp/ngyuki/</author_url>
  <blog_title>ngyukiの日記</blog_title>
  <blog_url>https://ngyuki.hatenablog.com/</blog_url>
  <categories>
    <anon>MySQL</anon>
  </categories>
  <description>この記事には続きがあります グループ内の上位 N 件を抽出する SQL はストアドでいいんじゃない？ - ngの日記 MySQL で簡単に出来そうで出来ない SQL に「グループ内の上位 N 件を抽出する SQL」があります。年に 1 回ぐらいこの問題について考え、毎回同じ結論になり「あれー去年も同じこと考えた気がするなー」となっているので、来年も同じことを考えるであろう自分に向けてメモを残しておきます。 なお、この内容は MySQL 5.5.19 で試しています*1。 (2012/07/26 追記：テストデータを増やした、users の name が抽出されていないのを修正) テストデータ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fngyuki.hatenablog.com%2Fentry%2F20120724%2Fp1&quot; title=&quot; グループ内の上位 N 件を抽出する SQL がうまく書けない - ngyukiの日記&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>2012-07-24 00:00:00</published>
  <title> グループ内の上位 N 件を抽出する SQL がうまく書けない</title>
  <type>rich</type>
  <url>https://ngyuki.hatenablog.com/entry/20120724/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
