<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>end0tknr</author_name>
  <author_url>https://blog.hatena.ne.jp/end0tknr/</author_url>
  <blog_title>end0tknr's kipple - web写経開発</blog_title>
  <blog_url>https://end0tknr.hateblo.jp/</blog_url>
  <categories>
    <anon>mysql</anon>
  </categories>
  <description>mysqlの副問合せで、上位?件の平均を算出しようとしたら select avg(val) from (select val from measure_0_hour_day_201202 where member_id=1 order by val desc limit 3) ERROR 1248 (42000): Every derived table must have its own alias と、「きちんとエイリアスを示しなさい」と怒られた。 で、↓このように select avg(top3.val) from (select val from measure_0_hour_day_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fend0tknr.hateblo.jp%2Fentry%2F20120312%2F1331537728&quot; title=&quot;上位?件の平均算出で Every derived table must have its own alias - end0tknr&amp;#39;s kipple - web写経開発&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-03-12 16:35:28</published>
  <title>上位?件の平均算出で Every derived table must have its own alias</title>
  <type>rich</type>
  <url>https://end0tknr.hateblo.jp/entry/20120312/1331537728</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
