<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pospome</author_name>
  <author_url>https://blog.hatena.ne.jp/pospome/</author_url>
  <blog_title>pospomeのプログラミング日記</blog_title>
  <blog_url>https://www.pospome.work/</blog_url>
  <categories>
    <anon>MySQL</anon>
  </categories>
  <description>データの集計で使う。group by で指定された列は重複が除去され、 それ以外の列には集計関数を使わなければならない。 select category_id, count(sentence) from sentence group by category_id; こうすると、カテゴリーIDごとに文章数をカウントしてくれる。 その結果に対して絞込みをしたい場合は having を使う。 慣れるとすごい便利。 というか、基本・・・。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pospome.work%2Fentry%2F20121001%2F1349082302&quot; title=&quot;group by - pospomeのプログラミング日記&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-10-01 18:05:02</published>
  <title>group by</title>
  <type>rich</type>
  <url>https://www.pospome.work/entry/20121001/1349082302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
