Skip to main content
Public lesson library

Mini-lecture lessons

Read one idea closely, then test whether you can explain it without looking back. Use the example to connect the principle to a decision at work.

Lesson previews

Read EXPLAIN as a Story About Work, Not a Wall of Costs

An EXPLAIN plan is a workload map. Read the work first. Start with node types, not folklore Sequential scans, index scans, joins, sorts, and aggregates each tell you what kind of effort the engine is about to spend. That is more actionable than vague rules like “seq scan bad” or “index scan good.” Then read the estimates Start-up cost, total cost, rows, and width describe what the planner believes. Wrong row beliefs are especially dangerous because they influence everything above them in the tree. Finally ask what optimization lever matches the evidence A giant sort may call for a better…

5 min
Know the Default Frame Before You Trust a Running Total

ORDER BY changes more than sequence. It changes visibility. Partitions answer who belongs together A partition groups peer rows, such as all invoices for one account or all orders for one store. Many developers stop there and assume every window function can always see the whole partition. Frames answer which of those rows are visible now Once you add order by, PostgreSQL defaults to a running frame from the start of the partition through the current row, plus ties. That is perfect for cumulative sums. It is not perfect for functions that are supposed to see the actual last row…

5 min
Use Window Functions When You Need Math Without Losing Rows

The row grain is the asset. Protect it. Why GROUP BY feels right and still breaks the report GROUP BY is perfect when the final output truly should be one row per group. It is the wrong tool when the business still wants order-level, event-level, or user-level detail in the final result. In that case, grouping early destroys evidence you still need. What a window changes A window function performs the calculation across related rows while leaving the current row in place. partition by defines the peer set. order by defines sequence. The result is a metric attached to each…

5 min
SQL Runs Backwards: Read the Pipeline First

The name SELECT is a little misleading: the real discipline is building the right row set before choosing the display columns. Source rows FROM and JOIN answer one question: what rows are even eligible to exist in this query? If you join orders to customers, every later clause sees the combined row set produced by that join. A missing join condition or a many-to-many join can multiply rows before you ever aggregate. Row filters WHERE removes individual rows before grouping. It is the place for facts that are true or false on one row: date range, status, region, non-null fields,…

5 min
WHERE Filters Rows; HAVING Filters Groups

Ask one question before choosing the clause: does this condition make sense on one row, or only after several rows have been summarized? Row facts belong in WHERE A row fact can be checked before grouping. Date ranges, statuses, ids, categories, and non-null checks belong here. These filters improve correctness and usually performance because irrelevant rows are removed before aggregation. Summary facts belong in HAVING A summary fact needs aggregate context. COUNT(*) > 500, SUM(revenue) >= 10000, AVG(rating) < 3.5, and COUNT(DISTINCT user_id) >= 50 are group-level checks. They belong after GROUP BY because the values they reference do not…

5 min
NULL Is Not Zero, Blank, or False

NULL is a state, not a value you compare with equals. That one distinction prevents a large class of silent SQL mistakes. Filtering missing values Use IS NULL when you want missing values and IS NOT NULL when you want present values. Equality and inequality comparisons are for known values. In WHERE, unknown is not kept. Counting with NULLs COUNT(*) answers: how many rows are in this group? COUNT(column) answers: how many rows have a non-null value in this column? COUNT(DISTINCT column) answers: how many different known values appear? Those are three different business questions. Outer-join NULLs After a LEFT…

5 min
Pick the Grain Before You Aggregate

Aggregation is not just math; it is math at a declared grain. The GROUP BY list is your contract with the reader. Name the output row Before writing SUM or COUNT, say what one output row represents. "One row per month" needs GROUP BY month. "One row per customer per month" needs GROUP BY customer and month. Protect entity counts Joins can multiply rows. Counting users after joining to events counts user-event rows unless you use COUNT(DISTINCT users.id) or pre-aggregate events to one row per user. Align SELECT with GROUP BY A selected non-aggregate column must either be part of…

5 min
When Reliability Meets Security

Use a simple trigger: if the incident includes unusual actor behavior, suspected abuse, sensitive-data exposure, unexplained privilege changes, or suspicious traffic patterns, involve security early. SRE still helps restore availability, but the response must preserve evidence and avoid actions that make investigation impossible. The operating pattern is containment with coordination. Rate limiting, feature flags, WAF rules, or traffic shaping may reduce impact while security analyzes indicators. Restarting, deleting, or rebuilding systems can be appropriate, but only after considering evidence needs and approved containment paths.

5 min
Clarify Service Ownership Before the Pager Rings

Service ownership should be visible before an incident. A service card or catalog entry needs enough information for a responder at 2 a.m.: owner, purpose, SLO, dashboards, runbooks, recent deploys, dependency owners, escalation rules, and decision authority. The key distinction is impact ownership versus component ownership. A dependency team may own a database, queue, or platform. The user-facing service owner still owns communication and restoration of the user promise. That prevents the classic loop where everyone proves their component is healthy while customers remain blocked.

5 min
Set the SLO Before the Dashboard

A dashboard is not an SLO. Dashboards show many signals; an SLO names the service promise you will manage. Start with a user journey, choose the event that proves it worked, decide the quality threshold, and set the measurement window. Diagnostics can explain why the promise is failing, but the SLO says whether users are getting what they came for. Common trap: teams promote whatever metric is easiest to collect. That produces alert noise and weak prioritization. A user-centered SLO forces tradeoffs: if the SLO is healthy, reliability work may wait behind product work; if it is burning fast, feature…

5 min
Spot Toil Before It Becomes the Job

Ask five questions: Is it manual? Is it repetitive? Could it be automated? Does it grow as the service grows? Does it lack durable learning or user-facing value? The more yes answers, the more likely it is toil. Do not automate reflexively. First ask whether the task should exist. Some toil is best deleted by changing an alert threshold, removing a brittle approval step, or fixing a service behavior. Other toil should be automated because the underlying need is real. The professional move is to make the cost visible and choose deliberately.

5 min
Skill Stacking for Irreplaceable Value

Stacking pattern Anchor: your strongest capability Connector 1: communication or translation Connector 2: delivery, systems, or design If these three outputs do not reinforce each other, you are not stacking yet.

5 min
Use the Funnel as a Diagnostic, Not a Blame Tool

The staffing reframe: inspect conversion by stage and ask what signal is being lost at that point. Name the work Staffing starts with work, not a person-shaped wish. Write the recurring outputs, the hard moments, the handoffs, and the decisions the role will own. This keeps the process anchored to performance instead of familiarity. Choose the evidence Once the work is clear, decide what evidence would prove readiness. Evidence can come from a resume, screen, structured interview, work sample, reference, or realistic preview conversation. The key is that the evidence must map to the work. Protect the decision Use the…

5 min
Separate Must-Haves From Nice-to-Haves

The staffing reframe: keep requirements that predict the work and downgrade preferences that merely describe a familiar profile. Name the work Staffing starts with work, not a person-shaped wish. Write the recurring outputs, the hard moments, the handoffs, and the decisions the role will own. This keeps the process anchored to performance instead of familiarity. Choose the evidence Once the work is clear, decide what evidence would prove readiness. Evidence can come from a resume, screen, structured interview, work sample, reference, or realistic preview conversation. The key is that the evidence must map to the work. Protect the decision Use…

5 min
Give Candidates a Realistic Preview

The staffing reframe: surface the work conditions that affect fit before the offer is accepted. Name the work Staffing starts with work, not a person-shaped wish. Write the recurring outputs, the hard moments, the handoffs, and the decisions the role will own. This keeps the process anchored to performance instead of familiarity. Choose the evidence Once the work is clear, decide what evidence would prove readiness. Evidence can come from a resume, screen, structured interview, work sample, reference, or realistic preview conversation. The key is that the evidence must map to the work. Protect the decision Use the same standard…

5 min
Write the Role Around Work, Not Wishes

The staffing reframe: translate adjectives into repeated tasks, required competencies, and evidence of success. Name the work Staffing starts with work, not a person-shaped wish. Write the recurring outputs, the hard moments, the handoffs, and the decisions the role will own. This keeps the process anchored to performance instead of familiarity. Choose the evidence Once the work is clear, decide what evidence would prove readiness. Evidence can come from a resume, screen, structured interview, work sample, reference, or realistic preview conversation. The key is that the evidence must map to the work. Protect the decision Use the same standard across…

5 min
Staging Models Are Where Source Cleanup Ends

Good staging removes source friction without deciding the business answer. A dbt staging model should make raw data legible and stable. That usually means renaming fields, casting types, trimming malformed values, standardizing null handling, and preserving row grain. It should not silently become the company's policy engine. What belongs in staging Source-specific clean-up belongs here: customerID becomes customer_id, text booleans become real booleans, timezone-naive timestamps get normalized, and duplicate ingestion rows get handled according to a source-aware rule. What does not belong in staging If the line of SQL answers a business question that stakeholders might argue about, it probably…

5 min
Map Stakeholders Before You Announce a People Change

Stakeholder mapping is preventive work, not presentation polish. People changes create cross-functional reactions because they alter incentives, workload, risk, or visibility. HRBPs who skip stakeholder mapping tend to discover these reactions in public meetings, which is the most expensive place to learn them. Prioritize by power and interest The power-interest grid tells you where to spend time. Manage closely where both are high. Keep satisfied where power is high but day-to-day interest is lower. Keep informed where interest is high but formal authority is lower. Monitor everyone else without ignoring them. Translate the stakeholder concern into business language A finance…

5 min
Map Stakeholders Before You Decide

A product council is about to remove a manual review step because it saves 90 seconds per case, but support notes show the rejected cases are mostly from small nonprofit customers. The ethical issue is already visible; the question is whether the team will name it before momentum decides for them. Why the framework matters Stakeholder mapping works because it forces invisible burdens into the decision before the team optimizes the workflow. It asks who benefits, who carries cost, who has no voice in the meeting, and who would reasonably expect notice or appeal. The framework turns the moment into…

5 min
Map the Room Before You Ask

The skilled move is to map decision gravity before you ask for motion. Segment attention by power and interest Power-interest is a prioritization tool, not a personality label. High-power, high-interest people need early engagement because they can shape the outcome and care enough to intervene. High-power, low-interest people need concise confidence: enough context to stay satisfied, not a flood of detail. Low-power, high-interest people need information and a way to raise real issues. Low-power, low-interest people should be monitored without noise. Separate influence from accountability A stakeholder can have influence without being accountable, and accountability without day-to-day influence. RACI keeps…

5 min
Standard Work Is the Baseline, Not the Ceiling

If every crew has a private method, the process has no baseline. Standardize the repeatable part Steel work includes judgment, but many critical moves repeat: isolations, measurements, inspections, material handoffs, and setup checks. Standardize the repeatable core so judgment is reserved for abnormal conditions. Put the standard at the work Standard work belongs where the work happens. A checklist hidden in a binder cannot shape behavior during a noisy preheat, roll change, or coil transfer. Visual, local, current standards reduce memory load. Improve from the baseline The standard is not the ceiling. It is the baseline. Once the work is…

5 min
Make Truck Readiness Standard Work

The move: make the truck reset visible, repeatable, and improvable. Standardized work captures the safest, most reliable current method for repeated work. In plumbing operations, the repeated work is not only pipe repair. It is also dispatch prep, truck restock, closeout notes, invoice evidence, and callback review. Sequence Define when the check happens. End-of-day restock protects tomorrow's first calls; morning checks catch overnight changes; parts-room scans update inventory. Standard inventory Use par levels for the most common work, not a wish list for every possible job. The standard should make the predictable ready and the unusual visible early. Visual control…

5 min
Standard Work Is a Baseline, Not a Cage

If everyone has a different method, the process cannot tell you what is wrong. Standardize the Critical Few Standard work does not document every wrist movement to control people. It captures the sequence, work-in-process limit, timing, safety points, and quality checks that make the outcome repeatable. The best standards are short enough to use at the station and specific enough to train against. Use It to See Abnormality A standard makes the abnormal visible. If a part is missing, a tool is out of reach, or the takt cannot be met, the deviation is seen quickly because the expected pattern…

5 min
Standard Work Keeps the Bake Consistent

The reframe: standard work is not the enemy of craft. It is the floor craft stands on. Recipes standardize ingredients. Standard work standardizes the repeatable behavior around the recipe. In a bakery, that includes setup, order of operations, timing windows, handoff points, quality checks, and reset steps. Fixed where variation hurts Some steps should not depend on who is working: allergen cleaning, scaling tolerance, pan labels, oven settings, cooling racks, date marks, and handoff notes. Variation there creates safety, quality, or scheduling problems. Flexible where judgment matters Fermentation, dough feel, fruit ripeness, oven spring, and final color may require skilled…

5 min

Skill catalogue | Browse the library

Put it into practice

Choose your next learning habit.

Contact us