<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gesoges0</author_name>
  <author_url>https://blog.hatena.ne.jp/gesoges0/</author_url>
  <blog_title>めもちょー</blog_title>
  <blog_url>https://memo.geso.site/</blog_url>
  <categories>
    <anon>SQL</anon>
    <anon>DB</anon>
  </categories>
  <description>練習 参加記 練習 用意されたテーブルから要求されたビューになるようなSQLを書くコンテストがありました。 第4問は縦に並んだレコードを横にする問題で、`GROUP BY`と`SUM(CASE WHEN 条件1 then x ELSE 0 END)`を使えば解けました。自分の回答 topsic-contest.jp 参加記 第1回SQLコンテストに参加しました。 第4問では、各グループの順位を取得するSQLを作りました。 Window関数を用いて各都道府県の順位カラムを作ったviewを作り、そこから1,2,3位のレコードのみを取得するというやり方で取得しました。 SELECT PF_CODE …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.geso.site%2Fentry%2F2022%2F07%2F24%2F214556&quot; title=&quot;第1回SQLコンテスト - めもちょー&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>https://cdn-ak.f.st-hatena.com/images/fotolife/g/gesoges0/20220725/20220725081410.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-24 21:45:56</published>
  <title>第1回SQLコンテスト</title>
  <type>rich</type>
  <url>https://memo.geso.site/entry/2022/07/24/214556</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
