{"id":1009,"date":"2014-01-04T13:19:18","date_gmt":"2014-01-04T12:19:18","guid":{"rendered":"http:\/\/www.salvis.com\/blog\/?p=1009"},"modified":"2023-11-07T22:08:03","modified_gmt":"2023-11-07T21:08:03","slug":"multi-temporal-database-features-in-oracle-12c","status":"publish","type":"post","link":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/","title":{"rendered":"Multi-temporal Features in Oracle 12c"},"content":{"rendered":"\n<p>Oracle 12c has a feature called <em>Temporal Validity<\/em>. With Temporal Validity, you can add one or more valid time dimensions to a table using existing columns, or using columns automatically created by the database. This means that Oracle offers combined with Flashback Data Archive native bi-temporal and even multi-temporal historization features. This blog post explains the different types of historization, when and how to use them and positions the most recent Oracle 12c database features.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Semantics and Granularity of Periods<\/h2>\n\n\n\n<p>In Flashback Data Archive Oracle defines periods with a half-open interval. This means that a point in time <strong>x<\/strong> is part of a period if <strong>x<\/strong> &gt;= the start of the period and<strong> x<\/strong> &lt; the end of the period. It is no surprise that Oracle uses also half-open intervals for Temporal Validity. The following figure visualizes the principle:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Period_Semantics_and_Granularity.png\"><img wpfc-lazyload-disable=\"true\" loading=\"lazy\" decoding=\"async\" width=\"1203\" height=\"182\" src=\"\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Period_Semantics_and_Granularity.png\" alt=\"Period, Semantics and Granularity\" class=\"wp-image-1013\" style=\"width:601px\" title=\"Period, Semantics and Granularity\" srcset=\"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Period_Semantics_and_Granularity.png 1203w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Period_Semantics_and_Granularity-300x45.png 300w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Period_Semantics_and_Granularity-1024x154.png 1024w\" sizes=\"auto, (max-width:767px) 480px, (max-width:1203px) 100vw, 1203px\" \/><\/a><figcaption class=\"wp-element-caption\"> Fig. 1: Semantics and Granularity of Periods<\/figcaption><\/figure>\n\n\n\n<p>The advantage of a half-open interval is that the end of a preceding period is identical to the start of the subsequent period. Thus there is no gap and the granularity of a period (year, month, day, second, millisecond, nanosecond, etc.) is irrelevant. The disadvantage is that querying data at a point in time using a traditional WHERE clause is a bit more verbose compared to closed intervals since BETWEEN conditions are not applicable.<\/p>\n\n\n\n<p>Furthermore, Oracle uses NULL for&nbsp;-\u221e&nbsp;und +\u221e. Considering this information the WHERE clause to filter the currently valid periods looks as follows:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">1) Current Periods<\/span><span role=\"button\" tabindex=\"0\" data-code=\"WHERE (vt_start IS NULL OR vt_start <= SYSTIMESTAMP)\n  AND (vt_end IS NULL OR vt_end &gt; SYSTIMESTAMP)\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">WHERE<\/span><span style=\"color: #D4D4D4\"> (vt_start <\/span><span style=\"color: #569CD6\">IS<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">OR<\/span><span style=\"color: #D4D4D4\"> vt_start &lt;= SYSTIMESTAMP)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #569CD6\">AND<\/span><span style=\"color: #D4D4D4\"> (vt_end <\/span><span style=\"color: #569CD6\">IS<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">OR<\/span><span style=\"color: #D4D4D4\"> vt_end &gt; SYSTIMESTAMP)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Use of Temporal Periods<\/h2>\n\n\n\n<p>In an entity-relationship model temporal periods may be used for transaction structure data, enterprise structure data or reference data. For transaction activity data we do not need temporal periods since the data itself contains one or more timestamps. Corrections may be done through a reversal or difference posting logic, similar to bookkeeping transactions.<\/p>\n\n\n\n<p>The situation is similar in a dimensional model. Dimensions correspond to transaction structure data, enterprise structure and reference data and may have a temporal period (e.g. slowly changing dimensions type 2). Facts do not have temporal periods. Instead, they are modeled with one or more relationships to the time dimension. A fact is immutable. Changes are applied through new facts using a reversal or difference posting logic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Transaction Time &#8211; TT<\/h2>\n\n\n\n<p>A flight data recorder collects and records various metrics during a flight to allow the reconstruction of the past. The transaction or system time in a data model is comparable to the functionality of such a flight data recorder. A table with a transaction time axis allows to query the current and the past state, but changes in the past or the future are not possible.<\/p>\n\n\n\n<p>Example: Scott becomes a manager. The change of the job description from &#8220;Analyst&#8221; to &#8220;Manager&#8221; was entered into the system on April 15, 2013, at 15:42:42. The previous description Analyst is terminated at this point in time and the new description Manager becomes current at exactly the same point in time.<\/p>\n\n\n\n<p>Oracle supports the transaction time with Flashback Data Archive (formally known as Total Recall). Using Flashback Data Archive you may query a consistent state of the past.<\/p>\n\n\n\n<p><span style=\"line-height: 1.5em;\">\n<table id=\"tablepress-4\" class=\"tablepress tablepress-id-4\" aria-labelledby=\"tablepress-4-name\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">SCN<\/th><th class=\"column-2\">Session A<\/th><th class=\"column-3\">Session B<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">1<\/td><td class=\"column-2\">INSERT INTO emp<br \/>\n&nbsp;&nbsp;&nbsp;(empno, ename, job, sal, deptno)<br \/>\nVALUES<br \/>\n&nbsp;&nbsp;&nbsp;(4242, 'CARTER', 'CLERK', '2400', 20);<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">2<\/td><td class=\"column-2\">SELECT COUNT(*)<br \/>\n&nbsp;&nbsp;FROM emp; -- <font color=\"red\"\/>15<\/font> rows<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">3<\/td><td class=\"column-2\"><\/td><td class=\"column-3\">SELECT COUNT(*) <br \/>\n&nbsp;&nbsp;FROM emp; -- <font color=\"red\"\/>14<\/font> rows<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">4<\/td><td class=\"column-2\">COMMIT;<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"tablepress-4-name\" class=\"tablepress-table-name tablepress-table-name-id-4\">Tab. 1: Consistent View of the Past<\/h2>\n<\/span><\/p>\n\n\n\n<p>What is the result of the query&nbsp;&#8220;SELECT COUNT(*) FROM emp AS OF SCN 3&#8221; based on table 1 above? &#8211; 14 rows. This is a good and reasonable representation of the past. However, it also shows, that the consistent representation of the past is a matter of definition and in this case, it does not represent the situation of session A.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Valid Time &#8211; VT<\/h2>\n\n\n\n<p>The valid time describes the period during which something in the real world is considered valid. This period is independent of the entry into the system and therefore needs to be maintained explicitly. Changes and queries are supported in the past as well as in the future.<\/p>\n\n\n\n<p>Example: Scott becomes a manager. The change of the job description from &#8220;Analyst&#8221; to &#8220;Manager&#8221; is valid from January 1 2014.&nbsp;The previous description Analyst is terminated at this point in time and the new description Manager becomes valid at exactly the same point in time. It is irrelevant when this change is entered into the System.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Decision Time &#8211; DT<\/h2>\n\n\n\n<p>The decision time describes the date and time a decision has been made. This point in time is independent of an entry into the System and is not directly related to the valid time period. Future changes are not possible.<\/p>\n\n\n\n<p>Example: Scott becomes manager. The decision to change the job description from &#8220;Analyst&#8221; to &#8220;Manager&#8221; was made on March 24 2013. The previous job description Analyst is terminated on the decision time axis at this point in time and the new description Manager becomes current at exactly the same point in time on the decision time axis.&nbsp;It is irrelevant when this change is entered into the System and it is irrelevant when Scott may call himself officially a manager.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Historization Types<\/h2>\n\n\n\n<p>On one hand, the historization types are based on the time dimensions visualized in figure 2 and on the other hand categorized on the combination of these time dimensions. In this post only the most popular and generic time periods are covered. However, depending on the requirements additional, specific time periods are conceivable.<\/p>\n\n\n<div class=\"wp-block-image center-figcaption\">\n<figure class=\"alignright size-full is-resized\"><a href=\"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"626\" src=\"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png\" alt=\"\" class=\"wp-image-1039\" style=\"width:313px\" srcset=\"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png 626w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1-150x150.png 150w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1-300x300.png 300w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1-330x330.png 330w\" sizes=\"auto, (max-width:767px) 480px, 626px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 2: Historization Types<\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Non-temporal models do not have any time dimensions (e.g. EMP and DEPT in Schema SCOTT).<\/p>\n\n\n\n<p>Uni-temporal models use just one time dimension (e.g. transaction time or valid time).<\/p>\n\n\n\n<p>Bi-temporal models use exactly two time dimensions (e.g. transaction time and valid time).<\/p>\n\n\n\n<p>Multi-temporal models use at least three time dimensions.<\/p>\n\n\n\n<p>Tri-temporal &nbsp;models are based exactly on three time dimensions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Temporal Validity<\/h2>\n\n\n\n<p>The feature Temporal Validity covers the DDL and DML enhancements in Oracle 12c concerning temporal data management. The statements CREATE TABLE, ALTER TABLE and DROP TABLE have been extended by a new PERIOD FOR clause. Here is an example:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">2) Enable Temporal Validity<\/span><span role=\"button\" tabindex=\"0\" data-code=\"SQL&gt; ALTER TABLE dept ADD (\n  2     vt_start DATE,\n  3     vt_end   DATE,\n  4     PERIOD FOR vt (vt_start, vt_end)\n  5  );\n\nSQL&gt; SELECT * FROM dept;\t\n\n    DEPTNO DNAME          LOC           VT_START   VT_END\n---------- -------------- ------------- ---------- ----------\n        10 ACCOUNTING     NEW YORK\n        20 RESEARCH       DALLAS\n        30 SALES          CHICAGO\n        40 OPERATIONS     BOSTON\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; ALTER TABLE dept ADD (<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  2     vt_start DATE,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  3     vt_end   DATE,<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  4     PERIOD FOR vt (vt_start, vt_end)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  5  );<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; SELECT * FROM dept;\t<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    DEPTNO DNAME          LOC           VT_START   VT_END<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">---------- -------------- ------------- ---------- ----------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        10 ACCOUNTING     NEW YORK<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        20 RESEARCH       DALLAS<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        30 SALES          CHICAGO<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        40 OPERATIONS     BOSTON<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>VT names the period and is a hidden column. The association of the VT period to the VT_START and VT_END columns is stored in the Oracle Data Dictionary in the table SYS_FBA_PERIOD. You need a dedicated ALTER TABLE call for every additional period.<\/p>\n\n\n\n<p>For every period a &nbsp;constraint is created to enforce positive time periods (VT_START &lt; VT_END). However, it is not possible to define temporal constraints, e.g. prohibit overlapping periods, gaps, or orphaned parent\/child periods.<\/p>\n\n\n\n<p>Oracle 12c does not deliver support for temporal DML. Desirable would be for example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>insert, update delete for a given period<\/li>\n\n\n\n<li>update a subset of columns for a given period<\/li>\n\n\n\n<li>merge of connected and identical periods<\/li>\n<\/ul>\n\n\n\n<p>Hence temporal changes have to be implemented as a series of conventional DML. Here is an example:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">3) Temporal DML<\/span><span role=\"button\" tabindex=\"0\" data-code=\"SQL&gt; UPDATE dept SET vt_end = DATE '2014-01-01' WHERE deptno = 30;\n\nSQL&gt; INSERT INTO dept (deptno, dname, loc, vt_start)\n  2       VALUES (30, 'SALES', 'SAN FRANCISCO', DATE '2014-01-01');\n\nSQL&gt; SELECT * FROM dept WHERE deptno = 30 ORDER BY vt_start NULLS FIRST;\n\n DEPTNO    DNAME          LOC           VT_START   VT_END\n---------- -------------- ------------- ---------- ----------\n        30 SALES          CHICAGO                  2014-01-01\n        30 SALES          SAN FRANCISCO 2014-01-01\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; UPDATE dept SET vt_end = DATE &#39;2014-01-01&#39; WHERE deptno = 30;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; INSERT INTO dept (deptno, dname, loc, vt_start)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  2       VALUES (30, &#39;SALES&#39;, &#39;SAN FRANCISCO&#39;, DATE &#39;2014-01-01&#39;);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; SELECT * FROM dept WHERE deptno = 30 ORDER BY vt_start NULLS FIRST;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> DEPTNO    DNAME          LOC           VT_START   VT_END<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">---------- -------------- ------------- ---------- ----------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        30 SALES          CHICAGO                  2014-01-01<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        30 SALES          SAN FRANCISCO 2014-01-01<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Temporal Flashback Query<\/h2>\n\n\n\n<p>The feature Temporal Flashback Query covers query enhancements in Oracle 12c concerning temporal data. Oracle extended the existing Flashback Query interfaces. The FLASHBACK_QUERY_CLAUSE of the SELECT statement has been extended by a PERIOD FOR clause. Here is an example:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">4) Temporal Flashback Query using SQL<\/span><span role=\"button\" tabindex=\"0\" data-code=\"SQL&gt; SELECT *\n  2    FROM dept AS OF PERIOD FOR vt DATE '2015-01-01'\n  3   ORDER BY deptno;\n\n    DEPTNO DNAME          LOC           VT_START   VT_END\n---------- -------------- ------------- ---------- ----------\n        10 ACCOUNTING     NEW YORK\n        20 RESEARCH       DALLAS\n        30 SALES          SAN FRANCISCO 2014-01-01\n        40 OPERATIONS     BOSTON\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; SELECT *<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  2    FROM dept AS OF PERIOD FOR vt DATE &#39;2015-01-01&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  3   ORDER BY deptno;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    DEPTNO DNAME          LOC           VT_START   VT_END<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">---------- -------------- ------------- ---------- ----------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        10 ACCOUNTING     NEW YORK<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        20 RESEARCH       DALLAS<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        30 SALES          SAN FRANCISCO 2014-01-01<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        40 OPERATIONS     BOSTON<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Instead of &#8220;AS OF PERIOD FOR&#8221; you may also use &#8220;VERSIONS PERIOD FOR&#8221;. However, it is important to notice that you may not define multiple PERIOD FOR clauses. Hence you need to filter additional temporal periods in the WHERE clause.<\/p>\n\n\n\n<p>The PERIOD FOR clause is not applicable for views. For views, the enhancement in the PL\/SQL package DBMS_FLASHBACK_ARCHIVE is interesting, especially the procedures ENABLE_AT_VALID_TIME and DISABLE_ASOF_VALID_TIME to manage a temporal context. Here is an example:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">5) Temporal Flashback Query using PL\/SQL Context<\/span><span role=\"button\" tabindex=\"0\" data-code=\"SQL&gt; BEGIN\n  2     dbms_flashback_archive.enable_at_valid_time(\n  3        level      =&gt; 'ASOF', \n  4        query_time =&gt; DATE '2015-01-01'\n  5     );\n  6  END;\n  7  \/\n\nSQL&gt; SELECT * FROM dept ORDER BY deptno;\n\n    DEPTNO DNAME          LOC           VT_START    VT_END\n---------- -------------- ------------- ---------- ----------\n        10 ACCOUNTING     NEW YORK\n        20 RESEARCH       DALLAS\n        30 SALES          SAN FRANCISCO 2014-01-01\n        40 OPERATIONS     BOSTON\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; BEGIN<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  2     dbms_flashback_archive.enable_at_valid_time(<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  3        level      =&gt; &#39;ASOF&#39;, <\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  4        query_time =&gt; DATE &#39;2015-01-01&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  5     );<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  6  END;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  7  \/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; SELECT * FROM dept ORDER BY deptno;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    DEPTNO DNAME          LOC           VT_START    VT_END<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">---------- -------------- ------------- ---------- ----------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        10 ACCOUNTING     NEW YORK<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        20 RESEARCH       DALLAS<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        30 SALES          SAN FRANCISCO 2014-01-01<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        40 OPERATIONS     BOSTON<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Currently, it is not possible to define a temporal period and therefore the context is applied to every temporal period. In these cases, you have to set the context via the WHERE clause.<\/p>\n\n\n\n<p>A limitation of Oracle 12.1.0.1 is that&nbsp;Temporal Flashback Query predicates are not applied in multitenant configuration. The PERIOD FOR clause in the SELECT statement and the DBMS_FLASHBACK_ARCHIVE.ENABLE_AT_VALID_TIME calls are simply ignored. This limitation has been lifted with Oracle 12.1.0.2.<\/p>\n\n\n\n<p>Another limitation is, that Oracle 12 does not provide support for temporal joins and temporal aggregations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tri-temporal Data Model<\/h2>\n\n\n\n<p>The following data model is based on the EMP\/DEPT model in the schema SCOTT. The table EMPV implements three temporal dimensions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Transaction time (TT) with Flashback Data Archive<\/li>\n\n\n\n<li>Valid time (VT) with Temporal Validity<\/li>\n\n\n\n<li>Decision time (DT) with Temporal Validity<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Tri_Temporal_Datamodel1.png\"><img wpfc-lazyload-disable=\"true\" loading=\"lazy\" decoding=\"async\" width=\"1294\" height=\"943\" src=\"\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Tri_Temporal_Datamodel1.png\" alt=\"Tri-temporal Data Model\" class=\"wp-image-1047\" style=\"width:642px\" title=\"Tri-temporal Data Model\" srcset=\"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Tri_Temporal_Datamodel1.png 1294w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Tri_Temporal_Datamodel1-300x218.png 300w, https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Tri_Temporal_Datamodel1-1024x746.png 1024w\" sizes=\"auto, (max-width:767px) 480px, (max-width:1294px) 100vw, 1294px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 3: Tri-temporal Data Model[<\/figcaption><\/figure>\n\n\n\n<p><span style=\"line-height: 1.5em;\"><span style=\"line-height: 1.5em;\">The table EMP is reduced to the primary key (EMPNO) which is not temporal. This allows to define and enable the foreign key constraint EMPV_EMP_MGR_FK.<\/span><\/span><\/p>\n\n\n\n<p>The following six events will be represented with this model.<\/p>\n\n\n\n<p><span style=\"line-height: 1.5em;\"><span style=\"line-height: 1.5em;\">\n<table id=\"tablepress-5\" class=\"tablepress tablepress-id-5\" aria-labelledby=\"tablepress-5-name\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">No<\/th><th class=\"column-2\">Transaction Time (TT)<\/th><th class=\"column-3\">Valid Time (VT)<\/th><th class=\"column-4\">Decision Time (DT)<\/th><th class=\"column-5\">Action<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">#1<\/td><td class=\"column-2\">1<\/td><td class=\"column-3\"><\/td><td class=\"column-4\"><\/td><td class=\"column-5\">Initial load from SCOTT.EMP table<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">#2<\/td><td class=\"column-2\">2<br \/>\n<\/td><td class=\"column-3\">1990-01-01<\/td><td class=\"column-4\"><\/td><td class=\"column-5\">Change name from SCOTT to Scott<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">#3<\/td><td class=\"column-2\">3<\/td><td class=\"column-3\">1991-04-01<\/td><td class=\"column-4\"><\/td><td class=\"column-5\">Scott leaves the company<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">#4<\/td><td class=\"column-2\">4<\/td><td class=\"column-3\">1991-10-01<\/td><td class=\"column-4\"><\/td><td class=\"column-5\">Scott rejoins<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">#5<\/td><td class=\"column-2\">5<\/td><td class=\"column-3\">1989-01-01<\/td><td class=\"column-4\"><\/td><td class=\"column-5\">Change job from ANALYST TO Analyst<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">#6<\/td><td class=\"column-2\">6<\/td><td class=\"column-3\">2014-01-01<\/td><td class=\"column-4\">2013-03-24<\/td><td class=\"column-5\">Change job to Manager and double salary<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"tablepress-5-name\" class=\"tablepress-table-name tablepress-table-name-id-5\">Tab. 2: Events<\/h2>\n<\/span><\/span><\/p>\n\n\n\n<p>After the processing of all 6 events the periods for employee 7788 (Scott) in the table EMPV may be queried as follows. The transaction time is represented as the System Change Number SCN.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">6) Content after Event #6<\/span><span role=\"button\" tabindex=\"0\" data-code=\"SQL&gt; SELECT dense_rank() OVER(ORDER BY versions_startscn) event_no, empno, ename, job,\n  2         sal, versions_startscn tt_start, versions_endscn tt_end,\n  3         to_char(vt_start,'YYYY-MM-DD') vt_start, to_char(vt_end,'YYYY-MM-DD') vt_end,\n  4         to_CHAR(dt_start,'YYYY-MM-DD') dt_start, to_char(dt_end,'YYYY-MM-DD') dt_end\n  5    FROM empv VERSIONS BETWEEN SCN MINVALUE AND MAXVALUE\n  6   WHERE empno = 7788 AND versions_operation IN ('I','U')\n  7   ORDER BY tt_start, vt_start NULLS FIRST, dt_start NULLS FIRST;\n\n# EMPNO ENAME JOB       SAL TT_START   TT_END VT_START   VT_END     DT_START   DT_END\n-- ----- ----- ------- ----- -------- -------- ---------- ---------- ---------- ----------\n 1  7788 SCOTT ANALYST  3000  2366310  2366356\n 2  7788 SCOTT ANALYST  3000  2366356  2366559            1990-01-01\n 2  7788 Scott ANALYST  3000  2366356  2366408 1990-01-01\n 3  7788 Scott ANALYST  3000  2366408  2366559 1990-01-01 1991-04-01\n 4  7788 Scott ANALYST  3000  2366424  2366559 1991-10-01\n 5  7788 SCOTT ANALYST  3000  2366559                     1989-01-01\n 5  7788 SCOTT Analyst  3000  2366559          1989-01-01 1990-01-01\n 5  7788 Scott Analyst  3000  2366559          1990-01-01 1991-04-01\n 5  7788 Scott Analyst  3000  2366559  2366670 1991-10-01\n 6  7788 Scott Analyst  3000  2366670          1991-10-01                       2013-03-24\n 6  7788 Scott Analyst  3000  2366670          1991-10-01 2014-01-01 2013-03-24\n 6  7788 Scott Manager  6000  2366670          2014-01-01            2013-03-24\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; SELECT dense_rank() OVER(ORDER BY versions_startscn) event_no, empno, ename, job,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  2         sal, versions_startscn tt_start, versions_endscn tt_end,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  3         to_char(vt_start,&#39;YYYY-MM-DD&#39;) vt_start, to_char(vt_end,&#39;YYYY-MM-DD&#39;) vt_end,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  4         to_CHAR(dt_start,&#39;YYYY-MM-DD&#39;) dt_start, to_char(dt_end,&#39;YYYY-MM-DD&#39;) dt_end<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  5    FROM empv VERSIONS BETWEEN SCN MINVALUE AND MAXVALUE<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  6   WHERE empno = 7788 AND versions_operation IN (&#39;I&#39;,&#39;U&#39;)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  7   ORDER BY tt_start, vt_start NULLS FIRST, dt_start NULLS FIRST;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"># EMPNO ENAME JOB       SAL TT_START   TT_END VT_START   VT_END     DT_START   DT_END<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">-- ----- ----- ------- ----- -------- -------- ---------- ---------- ---------- ----------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 1  7788 SCOTT ANALYST  3000  2366310  2366356<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 2  7788 SCOTT ANALYST  3000  2366356  2366559            1990-01-01<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 2  7788 Scott ANALYST  3000  2366356  2366408 1990-01-01<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 3  7788 Scott ANALYST  3000  2366408  2366559 1990-01-01 1991-04-01<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 4  7788 Scott ANALYST  3000  2366424  2366559 1991-10-01<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 5  7788 SCOTT ANALYST  3000  2366559                     1989-01-01<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 5  7788 SCOTT Analyst  3000  2366559          1989-01-01 1990-01-01<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 5  7788 Scott Analyst  3000  2366559          1990-01-01 1991-04-01<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\"> 5  7788 Scott Analyst  3000  2366559  2366670 1991-10-01<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 6  7788 Scott Analyst  3000  2366670          1991-10-01                       2013-03-24<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 6  7788 Scott Analyst  3000  2366670          1991-10-01 2014-01-01 2013-03-24<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 6  7788 Scott Manager  6000  2366670          2014-01-01            2013-03-24<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>7 rows have been changed or added based on event #5 at the transaction time 2366559. It clearly shows that DML operations in a temporal model are not trivial. All the more support in that area for VT and DT is missed.<\/p>\n\n\n\n<p>The next query filters the data for Scott on the transaction time (SYSDATE=default), valid time (2014-01-01) and decision time (2013-04-01). This way the result is reduced exactly to a single row.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">7) Point-in-time Query<\/span><span role=\"button\" tabindex=\"0\" data-code=\"SQL&gt; SELECT empno, ename, job, sal,\n  2         to_char(vt_start,'YYYY-MM-DD') AS vt_start,\n  3         to_char(vt_end,'YYYY-MM-DD') AS vt_end,\n  4         to_CHAR(dt_start,'YYYY-MM-DD') AS dt_start,\n  5         to_char(dt_end,'YYYY-MM-DD') AS dt_end\n  6    FROM empv AS OF period FOR dt DATE '2013-04-01'\n  7   WHERE empno = 7788 AND\n  8         (vt_start <= DATE '2014-01-01' OR vt_start IS NULL) AND\n  9         (vt_end &gt; DATE '2014-01-01' OR vt_end IS NULL)\n 10   ORDER BY vt_start NULLS FIRST, dt_start NULLS FIRST;\n\nEMPNO ENAME JOB       SAL VT_START   VT_END     DT_START   DT_END\n----- ----- ------- ----- ---------- ---------- ---------- ----------\n 7788 Scott Manager  6000 2014-01-01            2013-03-24\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">SQL&gt; SELECT empno, ename, job, sal,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  2         to_char(vt_start,&#39;YYYY-MM-DD&#39;) AS vt_start,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  3         to_char(vt_end,&#39;YYYY-MM-DD&#39;) AS vt_end,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  4         to_CHAR(dt_start,&#39;YYYY-MM-DD&#39;) AS dt_start,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  5         to_char(dt_end,&#39;YYYY-MM-DD&#39;) AS dt_end<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  6    FROM empv AS OF period FOR dt DATE &#39;2013-04-01&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  7   WHERE empno = 7788 AND<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  8         (vt_start &lt;= DATE &#39;2014-01-01&#39; OR vt_start IS NULL) AND<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D4D4D4\">  9         (vt_end &gt; DATE &#39;2014-01-01&#39; OR vt_end IS NULL)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 10   ORDER BY vt_start NULLS FIRST, dt_start NULLS FIRST;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">EMPNO ENAME JOB       SAL VT_START   VT_END     DT_START   DT_END<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">----- ----- ------- ----- ---------- ---------- ---------- ----------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> 7788 Scott Manager  6000 2014-01-01            2013-03-24<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Queries on multi-temporal data are relatively simple if all time periods are filtered at a point in time. The AS OF PERIOD clause (for DT) simplifies the query, but the complexity of a traditional WHERE condition (for VT) is not much higher.<\/p>\n\n\n\n<p><span style=\"font-size: 1.5em; line-height: 1.5em;\">Conclusion<\/span><\/p>\n\n\n\n<p>The support for temporal data management in Oracle 12c is based on sound concepts, but the implementation is currently incomplete. I miss mainly a temporal DML API, temporal integrity constraints, temporal joins and temporal aggregations. I recommend using Oracle&#8217;s semantics for periods (half-open intervals, NULL for +\/- infinity)&nbsp;in existing models, to simplify the migration to Temporal Validity.<\/p>\n\n\n\n<p>In the real world, we use a lot of temporal dimensions, consciously or unconsciously at the same time. However, in data models, every additional temporal dimension increases the complexity significantly. Data models are simplifications of the real world, based on requirements and a limited budget. I do not recommend using bi-temporality or even multi-temporality as a universal design pattern. Quite the contrary I recommend determining and documenting the reason for a temporal dimension per entity to ensure that temporal dimensions are used consciously&nbsp;and not modeled unnecessarily.<\/p>\n\n\n\n<p>Oracle&#8217;s Flashback Data Archive is good, transparent and since Oracle 11.2.0.4 also a cost-free option to implement requirements regarding the transaction time. For all other time dimensions such as the valid time and the decision time I recommend using standardized tooling to apply DML to temporal data.<\/p>\n\n\n\n<p><em>Last update on 2015-10-24, amendments to match limitations of Oracle version 12.1.0.2.4.<br \/><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle 12c has a feature called Temporal Validity. With Temporal Validity, you can add one or more valid time dimensions to a table using existing columns, or using columns automatically created by the database. This means that Oracle offers combined with Flashback Data Archive native bi-temporal and even multi-temporal historization features. This<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":1039,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[67,50,68,42,49,43],"class_list":["post-1009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oracle","tag-decision-time","tag-flashback","tag-flashback-data-archive","tag-temporal-database","tag-transaction-time","tag-valid-time"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Multi-temporal Features in Oracle 12c - Philipp Salvisberg&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multi-temporal Features in Oracle 12c - Philipp Salvisberg&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Oracle 12c has a feature called Temporal Validity. With Temporal Validity, you can add one or more valid time dimensions to a table using existing columns, or using columns automatically created by the database. This means that Oracle offers combined with Flashback Data Archive native bi-temporal and even multi-temporal historization features. This [\u2026]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/\" \/>\n<meta property=\"og:site_name\" content=\"Philipp Salvisberg&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-04T12:19:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-07T21:08:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"626\" \/>\n\t<meta property=\"og:image:height\" content=\"626\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Philipp Salvisberg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@phsalvisberg\" \/>\n<meta name=\"twitter:site\" content=\"@phsalvisberg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Philipp Salvisberg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/\"},\"author\":{\"name\":\"Philipp Salvisberg\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/#\\\/schema\\\/person\\\/34352245c48678b1a5a05d4bc1339515\"},\"headline\":\"Multi-temporal Features in Oracle 12c\",\"datePublished\":\"2014-01-04T12:19:18+00:00\",\"dateModified\":\"2023-11-07T21:08:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/\"},\"wordCount\":1794,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/#\\\/schema\\\/person\\\/34352245c48678b1a5a05d4bc1339515\"},\"image\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/01\\\/Historization_Types1.png\",\"keywords\":[\"Decision Time\",\"Flashback\",\"Flashback Data Archive\",\"Temporal Database\",\"Transaction Time\",\"Valid Time\"],\"articleSection\":[\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/\",\"url\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/\",\"name\":\"Multi-temporal Features in Oracle 12c - Philipp Salvisberg&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/01\\\/Historization_Types1.png\",\"datePublished\":\"2014-01-04T12:19:18+00:00\",\"dateModified\":\"2023-11-07T21:08:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/01\\\/Historization_Types1.png\",\"contentUrl\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/01\\\/Historization_Types1.png\",\"width\":626,\"height\":626},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/2014\\\/01\\\/04\\\/multi-temporal-database-features-in-oracle-12c\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi-temporal Features in Oracle 12c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/\",\"name\":\"Philipp Salvisberg&#039;s Blog\",\"description\":\"Database-centric development\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/#\\\/schema\\\/person\\\/34352245c48678b1a5a05d4bc1339515\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/#\\\/schema\\\/person\\\/34352245c48678b1a5a05d4bc1339515\",\"name\":\"Philipp Salvisberg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/11\\\/phs_trivadis4.jpg\",\"url\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/11\\\/phs_trivadis4.jpg\",\"contentUrl\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/11\\\/phs_trivadis4.jpg\",\"width\":400,\"height\":400,\"caption\":\"Philipp Salvisberg\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.salvis.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/11\\\/phs_trivadis4.jpg\"},\"sameAs\":[\"http:\\\/\\\/www.salvis.com\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Multi-temporal Features in Oracle 12c - Philipp Salvisberg&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/","og_locale":"en_US","og_type":"article","og_title":"Multi-temporal Features in Oracle 12c - Philipp Salvisberg&#039;s Blog","og_description":"Oracle 12c has a feature called Temporal Validity. With Temporal Validity, you can add one or more valid time dimensions to a table using existing columns, or using columns automatically created by the database. This means that Oracle offers combined with Flashback Data Archive native bi-temporal and even multi-temporal historization features. This [\u2026]","og_url":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/","og_site_name":"Philipp Salvisberg&#039;s Blog","article_published_time":"2014-01-04T12:19:18+00:00","article_modified_time":"2023-11-07T21:08:03+00:00","og_image":[{"width":626,"height":626,"url":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png","type":"image\/png"}],"author":"Philipp Salvisberg","twitter_card":"summary_large_image","twitter_creator":"@phsalvisberg","twitter_site":"@phsalvisberg","twitter_misc":{"Written by":"Philipp Salvisberg","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#article","isPartOf":{"@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/"},"author":{"name":"Philipp Salvisberg","@id":"https:\/\/www.salvis.com\/blog\/#\/schema\/person\/34352245c48678b1a5a05d4bc1339515"},"headline":"Multi-temporal Features in Oracle 12c","datePublished":"2014-01-04T12:19:18+00:00","dateModified":"2023-11-07T21:08:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/"},"wordCount":1794,"commentCount":8,"publisher":{"@id":"https:\/\/www.salvis.com\/blog\/#\/schema\/person\/34352245c48678b1a5a05d4bc1339515"},"image":{"@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#primaryimage"},"thumbnailUrl":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png","keywords":["Decision Time","Flashback","Flashback Data Archive","Temporal Database","Transaction Time","Valid Time"],"articleSection":["Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/","url":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/","name":"Multi-temporal Features in Oracle 12c - Philipp Salvisberg&#039;s Blog","isPartOf":{"@id":"https:\/\/www.salvis.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#primaryimage"},"image":{"@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#primaryimage"},"thumbnailUrl":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png","datePublished":"2014-01-04T12:19:18+00:00","dateModified":"2023-11-07T21:08:03+00:00","breadcrumb":{"@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#primaryimage","url":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png","contentUrl":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2014\/01\/Historization_Types1.png","width":626,"height":626},{"@type":"BreadcrumbList","@id":"https:\/\/www.salvis.com\/blog\/2014\/01\/04\/multi-temporal-database-features-in-oracle-12c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.salvis.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Multi-temporal Features in Oracle 12c"}]},{"@type":"WebSite","@id":"https:\/\/www.salvis.com\/blog\/#website","url":"https:\/\/www.salvis.com\/blog\/","name":"Philipp Salvisberg&#039;s Blog","description":"Database-centric development","publisher":{"@id":"https:\/\/www.salvis.com\/blog\/#\/schema\/person\/34352245c48678b1a5a05d4bc1339515"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.salvis.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.salvis.com\/blog\/#\/schema\/person\/34352245c48678b1a5a05d4bc1339515","name":"Philipp Salvisberg","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2010\/11\/phs_trivadis4.jpg","url":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2010\/11\/phs_trivadis4.jpg","contentUrl":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2010\/11\/phs_trivadis4.jpg","width":400,"height":400,"caption":"Philipp Salvisberg"},"logo":{"@id":"https:\/\/www.salvis.com\/blog\/wp-content\/uploads\/2010\/11\/phs_trivadis4.jpg"},"sameAs":["http:\/\/www.salvis.com\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/posts\/1009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/comments?post=1009"}],"version-history":[{"count":72,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/posts\/1009\/revisions"}],"predecessor-version":[{"id":12581,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/posts\/1009\/revisions\/12581"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/media\/1039"}],"wp:attachment":[{"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/media?parent=1009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/categories?post=1009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.salvis.com\/blog\/wp-json\/wp\/v2\/tags?post=1009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}