Learn

Theory

Insurance theory

The business before the SQL: what a policy, a premium, a loss and a claim are, and how an insurer measures its portfolio.

How an insurer works

Risk pooling: premiums in, claims and expenses out.

Policies

Policyholder, coverage, limit, deductible, policy period, renewal and lapse.

Premiums

Written, earned and unearned premium, and exposure.

Losses and claims

The event versus the request for payment, and a claim's life.

Reserves and incurred claims

Paid versus incurred, case reserves and IBNR.

Measuring a portfolio

Frequency, severity, loss ratio, combined ratio and retention.

Claims development

Development triangles and a first look at the chain ladder.

Distribution

Direct sales, brokers and commission.

Fraud and data quality

Red flags, and how constraints protect the numbers.

Data, privacy and regulation

Personal data, least privilege and regulatory reporting.

SQL theory

The ideas behind each day's SQL: how a query is evaluated, how joins and aggregates behave, how PostgreSQL plans a query, and how transactions and roles protect the data.

Relational databases

Tables, keys, types, null, and the parts of SQL.

How a query is evaluated

The logical order of a SELECT, three-valued logic and types.

Joins and relationships

One to many, many to many, the kinds of join and the fan-out trap.

Aggregation and grouping

Aggregates, nulls, WHERE against HAVING, ratios and subqueries.

Integrity and normalisation

Constraints, normal forms and B-tree indexes.

Views, CTEs and window functions

Saved queries, named steps, and calculations over related rows.

Functions and triggers

PL/pgSQL, volatility, BEFORE and AFTER, and when to use a constraint.

How PostgreSQL plans a query

Statistics, scans, join methods and sargable conditions.

JSON and extensions

json against jsonb, containment, GIN indexes and trigrams.

Transactions and security

ACID, MVCC, roles, row-level security and backups.

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to Data Analytics SQL Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects. Your work is kept.

The connection could not be restored. The page will reload in a few seconds.