<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yapud</author_name>
  <author_url>https://blog.hatena.ne.jp/yapud/</author_url>
  <blog_title>yet another pudding</blog_title>
  <blog_url>https://yapud.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>DB2 10.x にはテンポラル表っていうのがある。時間をベースに制御してくれる表。いくつか種類があるのだけど、その中から「アプリケーション期間テンポラル表」っていうのを紹介してみたい。 行のデータがいつ有効かをDB2のシステム側が面倒見てくれる仕組み。 例えばこんなシナリオ 旅行商品の情報テーブルがある。商品を売り出した後にイマイチ売れ行きが良くないので一定期間だけ値下げしたい。システムメンテがあるのでその期間は売り出したくない。等の操作が発生する。 ■テーブルを作る (テンポラル表) テーブルを作るときに、PERIOD BUSINESS_TIME (開始日時カラム, 終了日時カラム)という…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyapud.hatenablog.com%2Fentry%2F2014%2F02%2F19%2F000000&quot; title=&quot;DB2 のテンポラル表が勝手にデータを作ってくれて面白い #1 - yet another pudding&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>2014-02-19 00:00:00</published>
  <title>DB2 のテンポラル表が勝手にデータを作ってくれて面白い #1</title>
  <type>rich</type>
  <url>https://yapud.hatenablog.com/entry/2014/02/19/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
