7 min read

What is the ETL process? Extract, transform and load, step by step

ETL stands for extract, transform, load. It’s the process of taking data out of the systems where it’s created, cleaning and reshaping it so it’s consistent and useful, and putting it somewhere people can report on it, usually a data warehouse. If your monthly board pack involves exporting five spreadsheets, fixing the dates, deleting duplicates and pasting everything into one master file, you already run an ETL process. You just run it by hand.

This guide walks through each step in plain terms, shows a worked example with real-looking data, and explains the modern twist called ELT.

The analogy: a restaurant’s prep kitchen#

We’ll use one picture throughout. A restaurant doesn’t cook straight from the delivery truck.

  • Extract is the deliveries arriving: vegetables from one supplier, meat from another, dry goods from a third, each packed differently.
  • Transform is the prep kitchen: washing, peeling, trimming, portioning, labeling. Bad produce is thrown out. Everything ends up in standard containers.
  • Load is stocking the line: prepped ingredients go into the stations where cooks can grab them during service.

The diners (your managers reading dashboards) never see the prep kitchen. They only notice when it’s skipped, because the food comes out inconsistent.

The whole process at a glance#

SOURCES TRANSFORM DESTINATION
+-----------+
| Online |--+
| store | | +-------------------------+
+-----------+ | | clean: fix formats, | +---------------+
+-----------+ +--> | remove duplicates | | DATA |
| CRM |-----> | standardize: one name | -> | WAREHOUSE | -> dashboards,
+-----------+ +--> | per customer, one | | (tidy tables)| reports
+-----------+ | | currency | +---------------+
| Accounting|--+ | combine & summarize |
+-----------+ +-------------------------+
EXTRACT LOAD

Step 1: Extract#

Extraction means copying data out of the source systems. The sources are usually business apps (CRM, or customer relationship management, plus online store, accounting, support desk), databases, and sometimes files like spreadsheets or CSV (comma-separated values) exports.

Two choices matter here:

  • Full or incremental? A full extract copies everything every time. Simple, but slow and expensive as data grows. An incremental extract copies only what’s new or changed since the last run, usually by looking at a “last updated” time stamp. Some tools use CDC (change data capture), which reads the source database’s own change log to catch every insert, update and delete.
  • How do you connect? Most modern apps are read through their API (application programming interface); our API integration guide explains how that works and why rate limits matter for big extracts. Databases are read directly. Files are picked up from a folder or storage bucket.

Extraction is where volume, and therefore cost, is decided. Several ETL tools price by how much data changes in the source each month, which is why incremental extraction matters for your bill as well as your speed. Our list of ETL tools sets out each vendor’s pricing unit.

Step 2: Transform#

Transformation is the prep kitchen, and it’s where most of the business logic lives. Typical jobs:

TransformationExample
CleanTrim stray spaces, fix “N/A” and blanks, correct obvious typos
StandardizeDates in one format (ISO, like 2026-11-29), amounts in one currency, states as two-letter codes
Deduplicate”Acme Inc”, “ACME, Inc.” and “Acme” become one customer
Map codesThe store’s “SHP-STD” and the CRM’s “Standard shipping” become one value
JoinAttach the sales rep from the CRM to each order from the store
CalculateGross margin = revenue minus cost of goods
SummarizeDaily totals by product and region
ValidateFlag orders with negative quantities or missing customer IDs

Every one of these encodes a decision someone in the business made. “What counts as an active customer?” and “Do refunds reduce last month’s revenue or this month’s?” are transformation rules. Write them down, because the dashboards will only ever be as consistent as these definitions.

Step 3: Load#

Loading writes the transformed data into the destination. Three common patterns:

  • Full refresh: wipe the table and reload it. Simple, fine for small tables.
  • Append: add new rows to the end. Good for events that never change, like page views.
  • Upsert (update or insert): update rows that already exist and add new ones. The usual choice for records that change, like orders that move from “paid” to “shipped.”

Loads usually run on a schedule (every hour, every night) or continuously for near real-time needs.

ETL vs ELT#

Cloud data warehouses changed the order of operations. Because they can store huge amounts cheaply and process data quickly, many teams now load raw data first and transform it inside the warehouse. That’s ELT: extract, load, transform. Microsoft’s Azure Architecture Center page on ETL describes both patterns side by side.

ETLELT
Where transformation happensIn a separate tool or server, before loadingInside the warehouse, after loading
Raw data kept?Often notYes, in the warehouse
Change a rule laterRe-extract and reprocessRerun the transformation on the raw data you already have
Typical toolsTraditional ETL suitesA loading tool plus SQL-based transformation, such as dbt

The tool dbt, for example, describes itself in its documentation as transforming raw warehouse data into trusted data products, which is the “T” in ELT. In everyday speech, people still say “ETL” for both.

Where should the results live? That depends on your data; our comparison of data warehouses, data lakes and lakehouses explains the options.

A worked example: weekly sales by region#

A 30-person wholesaler wants one weekly dashboard: sales by region and by sales rep.

Extract. Every night, pull new and changed orders from the online store (order ID, customer email, date, total, ship-to state), deals from the CRM (customer email, sales rep, region), and paid invoices from the accounting system (invoice number, order ID, amount paid).

Transform.

  1. Convert all dates to ISO format and all amounts to US dollars.
  2. Match store orders to CRM records by customer email, lowercased and trimmed so “Pat@Example.com ” matches “pat@example.com”.
  3. Where no CRM match exists, assign region from the ship-to state using a simple lookup table, and flag the order “unassigned rep.”
  4. Join invoices to orders so the dashboard can show sales billed and sales paid separately.
  5. Drop test orders (anything with “test” in the customer email).
  6. Summarize to one row per week, region and rep.

Load. Upsert the detailed orders table (because order statuses change) and fully refresh the small weekly summary table.

Check. Compare the warehouse’s weekly total against the accounting system’s report for the same week. If they differ by more than a small agreed tolerance, alert the data owner before the dashboard refreshes.

That last step is the one teams skip, and it’s the one that keeps leadership trusting the numbers.

Five mistakes that make ETL painful#

  1. Extracting everything “just in case.” Every extra table costs time, money and attention. Start with the data a real report needs, and add more when someone asks a real question.
  2. Burying business rules in code nobody reads. If the definition of “revenue” lives in one engineer’s script, it leaves when they do. Keep rules documented in plain language beside the logic.
  3. Transforming away the raw data. If you only keep the cleaned version, you can’t fix a rule retroactively. Keep a raw copy, even a cheap one.
  4. Ignoring deletes. Incremental extracts often catch new and changed records but miss deleted ones, so cancelled orders linger in reports. Ask your tool how it handles deletes.
  5. Treating time zones as an afterthought. An order at 11:30 p.m. in California is the next day in UTC (Coordinated Universal Time). Decide which time zone your reports use and convert once, in the transform step.

Who does the work in a small company?#

There are three common setups. An analyst or ops lead uses a managed loading tool and writes transformations in SQL (Structured Query Language) inside the warehouse; this is the lightest option. A freelance or agency data engineer builds and maintains the pipeline on a retainer. Or an integration platform you already pay for handles simple extracts and loads alongside its app-to-app work, though it’s rarely built for heavy transformations. Whichever you choose, the person who owns the business definitions should not be the only person who can change the pipeline, and the person who maintains the pipeline should not be deciding what “revenue” means.

Keeping it healthy#

  • Monitor every run. Failed or partial loads should alert a named person, not just write a log.
  • Watch for source changes. A new field in the CRM or a renamed product category can quietly break a transformation.
  • Version your rules. Keep transformation logic in one documented place so changes are reviewed.
  • Mind the clock. Schedule extracts outside busy hours and stagger them so you don’t hit API limits.

What this means for a 20-person company

  • If someone spends hours each month merging exports, you have a manual ETL process worth automating.
  • Start with one dashboard and the three or four sources it needs, not “all our data.”
  • Write down the business definitions (active customer, booked vs paid revenue) before any tool is set up.
  • Add one reconciliation check against the accounting system; it’s the cheapest trust you’ll ever buy.
  • A managed loading tool plus a simple warehouse is usually enough; custom code can wait.