<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bookreadkun</author_name>
  <author_url>https://blog.hatena.ne.jp/bookreadkun/</author_url>
  <blog_title>おーみんブログ</blog_title>
  <blog_url>https://oooomincrypto.hatenadiary.jp/</blog_url>
  <categories>
    <anon>IT系その他</anon>
  </categories>
  <description>おはようございます。おーみんです。 今回はSQL Server 2012より追加された月末を求めるEOMONTH関数についてまとめていこうと思います。 基本的に月末を求める方法としては「月初を求めてそこから1日引く」という手法が一般的だと思います。 しかしながらSQL Server 2012以降ならEOMONTH関数を使うことで一発で求められちゃうんですね～！ 実際に見てみましょう。 今月（8月）の月末を求めてみます。 一発ですね！ ちなみにNヵ月後の月末を求めたい場合は EOMONTH(&quot;基準月&quot;, N)とすればOKです。 便利ですね～！！ Nの値に負の数を入れることで基準月より前の月の月末…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foooomincrypto.hatenadiary.jp%2Fentry%2Fabout-eomonth-sql&quot; title=&quot;【SQL Server】月末を求められるEOMOTH関数が便利！！！ - おーみんブログ&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/b/bookreadkun/20190803/20190803225337.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-09 06:00:00</published>
  <title>【SQL Server】月末を求められるEOMOTH関数が便利！！！</title>
  <type>rich</type>
  <url>https://oooomincrypto.hatenadiary.jp/entry/about-eomonth-sql</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
