Skip to content
tanvi.notes

Analytics engineering blog · Notebook

Clean models,honest numbers.

Essays on SQL, dbt and metrics people can trust, a public notebook of 300 linked notes, and a book on SQL patterns, written in the open. I am Tanvi, an analytics engineer writing here since 2019.

click a node to jump in · a new essay every other Sunday

WritingNotesBookAbout

Where to start

  • The blog

    Long essays on data modelling, metrics layers and the craft of analytics engineering.

    read latest
  • The notebook

    300 short, linked notes: SQL tricks, dbt patterns, tools I use and books I read.

    enter notebook
  • SQL patterns

    A glossary of window functions, joins and anti-patterns, each with a runnable example.

    open patterns
  • The book

    SQL Patterns for Analysts, free to read online while I write it.

    open book

Stay updated with my newsletter

Two emails a month: the new essay, three notes worth reading and one SQL trick. No spam, unsubscribe any time.

Or follow along by RSS, LinkedIn or GitHub.

Work in progress

SQL Patterns for Analysts

A practical book about the SQL shapes that keep coming back: deduplication, sessions, funnels, slowly changing dimensions and more. Each chapter starts from a real question and ends with a query you can reuse.
  • Free to read online
  • New chapter every month
  • Every query runs in DuckDB

Analytics engineer, writer and teacher

Tanvi Deshpande

I build data models and metrics for a Pune fintech, and I have been writing about it here since 2019. Before that I was a product analyst who spent too long reconciling dashboards, which is how I fell for testing, naming and documentation.