Cheat Sheet
DATABASECHEAT SHEETS
SHEET 10
Views, Triggers and Privacy
M.R. Sterling
Database Advanced · Sheet 10

Views, Triggers and PrivacySQLite

Who sees what, one patient at a time: views that hide columns, masking with SUBSTR and ||, an age-band view for research, a change log written by an AFTER trigger, and a BEFORE trigger that refuses a bad charge.

Or get all 6 in the Database Cheat Sheets: Advanced Pack for $19, or with the whole Health Data Clinic series in the Health Data Clinic - Complete + Cheat Sheets for $109.

Instant PDF downloadsent the moment you pay
Two A4 pagesprint front and back
SQLiteevery query runs as printed
Keep it foreverno expiry, no account

What the sheet looks like

A blurred preview, to show the layout and how much fits on the two pages. The full, print-sharp sheet comes with your download.

Page 1 of the Views, Triggers and Privacy cheat sheet
Page 1 (front)
Page 2 of the Views, Triggers and Privacy cheat sheet
Page 2 (back)

What is on this sheet

Who sees what
CREATE VIEW
Drop and rebuild
Always live, and read-only
Masking
De-identify with CASE
Protect the stored data
AFTER and BEFORE triggers
CTE with WITH
Learn it properly

The books this sheet pairs with

The sheet reminds you. These books teach it, one idea at a time, with every example worked.

More Database Advanced sheets

One email when a new book lands

No schedule, no filler. Just the new titles and the odd free chapter.