<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bleis-tift</author_name>
  <author_url>https://blog.hatena.ne.jp/bleis-tift/</author_url>
  <blog_title>ぐるぐる～</blog_title>
  <blog_url>https://bleis-tift.hatenablog.com/</blog_url>
  <categories>
    <anon>SQL</anon>
  </categories>
  <description>col1 col2 col3 col4 1001 2323 500 0 456 1001 0 200 1111 1001 0 300 こんな感じにデータが入ってて、 col1-2 sum(col3) sum(col4) 1001 500 500 な感じにcol1かcol2が1001になってるやつのcol3とcol4を集計したい場合*1、 SELECT CASE col3 WHEN 0 THEN col2 ELSE col1 END AS 'col1-2' , sum(col3) , sum(col4) FROM SomeTable WHERE 1001 IN (col1, col2) GROU…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20080417%2F1208435979&quot; title=&quot; - ぐるぐる～&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>2008-04-17 21:39:39</published>
  <title></title>
  <type>rich</type>
  <url>https://bleis-tift.hatenablog.com/entry/20080417/1208435979</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
