Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Working With Temporal Data in SQL Server

via Pluralsight

Write review

Overview

Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access


Although temporal data is part of many business applications, most RDBMS', including SQL Server, do not support it out of the box. However, before solving the problem, you need to understand it. After an introduction to temporal problems and constraints, you will learn how to implement the solutions. Many solutions are much simpler with the help of a special Interval CLR data type. Additional relational operators PACK and UNPACK are handy as well. Of course, these two operators do not exist in the Transact-SQL language. You will learn how to implement them with help of other language elements. Having a SQL Server solution for a problem does not mean the job is done. Of course, the next immediate issue is performance. Temporal queries that involve intervals are typically very IO and CPU intensive. For example, a test for overlapping intervals was solved with inefficient queries for years. However, a handful of solutions with fast queries was developed recently. This course introduces five different methods to get efficient queries that search for overlapping intervals, one of the most complex temporal problems. Of course, these solutions can be implemented for other temporal problems as well. All the solutions presented should work on any edition of SQL Server from 2008 to 2014.

Syllabus

  • Introduction 3mins
  • Temporal Databases, Problems, and Constraints 26mins
  • The Interval Data Type 36mins
  • Packing and Unpacking Intervals 23mins
  • Optimizing Temporal Queries Part 1 30mins
  • Optimizing Temporal Queries Part 2 26mins
  • Optimizing Temporal Queries Part 3 40mins

Taught by

Dejan Sarka

Reviews

4.1 rating at Pluralsight based on 54 ratings

Start your review of Working With Temporal Data in SQL Server

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.