SQL Flow Field Guide

Read a backup inventory

Build a recovery timeline from synthetic backup records.

What you are trying to do

An incident ticket lists candidate backup sets and asks which details need confirmation.

Work through it

  1. Sort the synthetic sets by finish time.
  2. Separate full, differential, and log backup types.
  3. List the headers and log sequence details that must be checked before restore.

Check your work

The timeline is ordered and is treated as a review aid, not proof that the restore chain is valid.

Practice SQL

Open in SQL Flow
SELECT BackupType, BackupStart, BackupFinish FROM (VALUES (N'Full', CONVERT(datetime2, '2026-10-11T01:00:00'), CONVERT(datetime2, '2026-10-11T01:20:00')), (N'Differential', CONVERT(datetime2, '2026-10-11T05:00:00'), CONVERT(datetime2, '2026-10-11T05:06:00')), (N'Log', CONVERT(datetime2, '2026-10-11T05:30:00'), CONVERT(datetime2, '2026-10-11T05:31:00'))) AS BackupSet(BackupType, BackupStart, BackupFinish) ORDER BY BackupFinish;

Commands in this lesson

Next lesson Check one permission