How Much Inspection Time Did We Actually Record?

Turn visit rows into a summary without confusing the number of visits with the number of known durations.

13 sections · 4 questions · 1 coding challenge

1 / 13

A Report Needed Fewer Rows Than the Log

BOTIE

Database query languages had to support reports that combined many stored records into a small result. Aggregate functions make the reduction explicit so the query can state what is counted or combined.

SQLite documents its aggregate treatment of missing and empty inputs. The maintenance example uses those rules to distinguish visits that exist from durations that were actually measured.

Sources for this history