Querying temporal data in SQL Server 2017

System-versioned tables are primarily intended for tracking historical data changes. Queries on system-versioned tables often tend to be concerned with retrieving table content as of a given point in time, or between any two given points in time. As you saw, Microsoft has implemented them according to the SQL:2011 standard, which means that two physical tables exist: a table with actual data and a history table. In order to simplify queries against temporal tables, the SQL:2011 standard introduced a new SQL clause, FOR SYSTEM_TIME. In addition to it, some new temporal-specific sub-clauses have been added too. SQL Server 2017 has not only implemented these extensions, but added two more extensions. ...

Get SQL Server 2017 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.