<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinsuke789</author_name>
  <author_url>https://blog.hatena.ne.jp/shinsuke789/</author_url>
  <blog_title>ソフラボの技術ブログ</blog_title>
  <blog_url>https://shinsuke789.hatenablog.jp/</blog_url>
  <categories>
    <anon>SQL</anon>
    <anon>Oracle</anon>
  </categories>
  <description>SQL関数「COALESCE」でサブクエリを使うには少しだけ工夫がいるようです。サンプルコードはOracleを想定しています。 COALESCEとは 値がNULLの場合、代替値を設定するSQL関数です。 COALESCEの通常の使い方 SELECT COALESCE(NULL, 0) AS value FROM dual -- 結果：0 COALESCEでサブクエリを使う SELECT COALESCE( SELECT NULL FROM dual , 0) AS value FROM dual -- 結果：ORA-00936: 式がありません COALESCEでひと工夫してサブクエリを使う …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinsuke789.hatenablog.jp%2Fentry%2F2015%2F04%2F23%2F123000&quot; title=&quot;SQL関数「COALESCE」でサブクエリを使うにはひと工夫が必要 - ソフラボの技術ブログ&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://blog.st-hatena.com/images/theme/og-image-1500.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-04-23 12:30:00</published>
  <title>SQL関数「COALESCE」でサブクエリを使うにはひと工夫が必要</title>
  <type>rich</type>
  <url>https://shinsuke789.hatenablog.jp/entry/2015/04/23/123000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
