Skip to content

ETL vs ELT comes down to where the transformation runs. Both move data from source systems, such as an application database or a billing tool, into a data warehouse, a database built for analytical queries. In ETL (extract, transform, load), the data is cleaned and reshaped on a separate processing server before it is loaded, so only finished tables reach the warehouse. In ELT (extract, load, transform), the raw data is loaded first and then transformed inside the warehouse with SQL.

What ETL and ELT stand for

Both are data integration processes with the same three steps. They differ only in the order of the last two.

  • Extract. Copy data out of the sources: databases, files, software-as-a-service applications. This step is the same in both.
  • Transform. Turn raw data into something usable: fix data types, remove duplicates, drop bad records, join, aggregate, and apply business rules.
  • Load. Write the data into the target, usually the warehouse.

The ETL process

  1. Extract raw data from the sources.
  2. Transform it on a separate engine, which AWS calls a secondary processing server. Microsoft notes that this often involves temporary staging tables.
  3. Load the finished data into the warehouse.

The ELT process

  1. Extract raw data from the sources.
  2. Load it, unchanged, into the warehouse or a data lake, which stores files in their original format.
  3. Transform it there, using the warehouse's own processing power. In practice that means SQL.

ETL vs ELT: comparison table

QuestionETLELT
Order of stepsExtract, transform, loadExtract, load, transform
Where the transformation runsOn a separate processing server or transformation engine, outside the warehouseInside the warehouse, using its compute
What lands in the warehouse firstFinished, transformed tablesRaw data as extracted. Transformed tables are built from it afterward
Who writes the transformations, and in what languageThe engineers who maintain the pipeline, in the language or interface of the transformation engineAnyone on the data team who knows SQL, as SELECT statements
How a logic change is reprocessedRows already loaded were built with the old logic. Applying the new logic to history means extracting again or replaying saved extractsThe raw rows are still in the warehouse. Change the SQL and rebuild, and the change applies to all history
Sensitive dataFields can be masked (obscured) or dropped before the load, so they never reach the warehouseRaw values land in the warehouse. Protection depends on the warehouse's access controls and masking
Example toolsSQL Server Integration Services, Cloud Data FusionA loader such as Fivetran or Stitch, with dbt or Dataform for the SQL, on a warehouse such as BigQuery, Snowflake, or Redshift

The tools are examples taken from the sources below, not recommendations.

A worked ELT example in SQL

PostgreSQL 16 stands in for the warehouse here. A loader, the tool that does the extract and load steps, has copied an orders export into a raw table as it arrived: every source column is text, and the loader added a loaded_at timestamp. Order 1002 arrives twice because it was synced again after its status changed. One status is in capitals, and one amount is not a number.

create table raw_orders (
    order_id       text,
    customer_email text,
    ordered_at     text,
    amount         text,
    status         text,
    loaded_at      timestamp
);

insert into raw_orders values
    ('1001', 'ana@example.com', '2026-03-01 09:15:00', '120.00', 'completed', '2026-03-02 02:00:00'),
    ('1002', 'ben@example.com', '2026-03-01 11:40:00', '75.50',  'pending',   '2026-03-02 02:00:00'),
    ('1002', 'ben@example.com', '2026-03-01 11:40:00', '75.50',  'completed', '2026-03-03 02:00:00'),
    ('1003', 'cy@example.com',  '2026-03-02 08:05:00', ' 40 ',   'COMPLETED', '2026-03-03 02:00:00'),
    ('1004', 'dee@example.com', '2026-03-02 14:30:00', 'N/A',    'completed', '2026-03-03 02:00:00'),
    ('1005', 'eli@example.com', '2026-03-02 16:45:00', '19.99',  'cancelled', '2026-03-03 02:00:00');

That is the E and the L. The raw table is not ready for reports. Summing the amount column fails on the bad row:

select sum(amount::numeric) from raw_orders;

ERROR:  invalid input syntax for type numeric: "N/A"

The T is a staging query, saved as a view. It casts each column to a real type, keeps only the most recently loaded copy of each order, and filters out rows whose amount is not a number.

create view stg_orders as
with typed as (
    select
        order_id::integer                         as order_id,
        ordered_at::timestamp                     as ordered_at,
        case
            when pg_input_is_valid(amount, 'numeric')
            then amount::numeric(10, 2)
        end                                       as amount,
        lower(trim(status))                       as status,
        row_number() over (
            partition by order_id
            order by loaded_at desc
        )                                         as load_rank
    from raw_orders
)
select order_id, ordered_at, amount, status
from typed
where load_rank = 1
  and amount is not null;

select * from stg_orders order by order_id;

 order_id |     ordered_at      | amount |  status   
----------+---------------------+--------+-----------
     1001 | 2026-03-01 09:15:00 | 120.00 | completed
     1002 | 2026-03-01 11:40:00 |  75.50 | completed
     1003 | 2026-03-02 08:05:00 |  40.00 | completed
     1005 | 2026-03-02 16:45:00 |  19.99 | cancelled
(4 rows)

Six raw rows became four clean ones: the older copy of order 1002 and the unreadable order 1004 are gone. (pg_input_is_valid is a PostgreSQL function that tests whether a string is valid input for a type.) A report can now aggregate the staging view:

select
    ordered_at::date as order_date,
    count(*)         as completed_orders,
    sum(amount)      as revenue
from stg_orders
where status = 'completed'
group by ordered_at::date
order by order_date;

 order_date | completed_orders | revenue 
------------+------------------+---------
 2026-03-01 |                2 |  195.50
 2026-03-02 |                1 |   40.00
(2 rows)

The raw table still holds all six rows. If a rule changes, you edit the view and query again. Nothing is extracted a second time. Raw, then cleaned, then aggregated is the layering that Databricks calls bronze, silver, and gold: see medallion architecture explained.

What the ETL version would do differently

An ETL job applies the same cleanup before the load, in a script or tool on a separate server, and inserts only the four clean rows into a typed orders table. The raw rows never reach the warehouse: not the duplicate, not the N/A amount, and not the email addresses if the job drops that column. The cost is that rows already loaded were built by the old rules, so changing a rule for past data means going back to the source.

Why ELT became common with cloud warehouses

dbt Labs, the company behind the transformation tool dbt, gave its explanation in 2017: analytic databases such as Redshift, Snowflake, and BigQuery had become powerful and scalable enough that most transformations could run in the database and no longer needed an external processing layer. Its essay on the analytics engineer role adds a second cause. Data pipeline services such as Stitch and Fivetran made extracting and loading simple, so by 2016 raw data was easy to get into a warehouse and the remaining work was transformation in SQL. dbt Labs says it and others started calling the people who do that work analytics engineers in 2018. See what is analytics engineering.

Warehouse vendors now say much the same. Google's BigQuery documentation recommends ELT to most customers, and AWS describes ELT as the standard choice for modern analytics. Microsoft adds a condition: the target system has to be powerful enough to do the transformation efficiently. These are the vendors' positions, not measurements.

The target does not have to be a warehouse. AWS and Microsoft both describe ELT into a data lake or a lakehouse.

When ETL is still the right choice

Consider transforming before the load when one of these is true:

  • Sensitive fields must not land in the warehouse. Masking or dropping them before the load is the only way to guarantee that. dbt Labs' own guide to ELT lists stored raw data as a security and compliance concern. If you load raw data anyway, restrict access to the raw tables and use the warehouse's column controls, such as column-level data masking in BigQuery.
  • The target cannot take the work. Microsoft recommends ETL for offloading heavy transformations from a constrained target system. Google notes that ETL is useful when you want to reduce resource usage in BigQuery, or when you already have a transformation process in place.
  • The data should be reduced before it is sent. AWS gives the example of sensor data that is filtered or averaged on the device.

The choice is per source, not per company. AWS and dbt Labs both describe setups that use ETL for some sources and ELT for the rest.

Where dbt fits

dbt is the T in ELT. dbt Labs states that it does not extract or load data. It transforms data that another tool has already loaded into the warehouse. You write each transformation as a SQL SELECT statement, called a model, and dbt creates the table or view, so the create view line in the example would not be written by hand. The stg_orders view is what a dbt project calls a staging model: dbt Labs' project guide uses that layer for renaming and type casting and builds it as views. dbt also adds version control, tests, and documentation.

For more, read what dbt is, in simple terms, then build a project with the beginner's guide to dbt. Something still has to run the load and then the transformations on a schedule. dbt Cloud vs Airflow compares two ways to do that.

Reverse ETL and change data capture

Reverse ETL runs in the other direction: it copies modeled data out of the warehouse into operational tools such as a sales or support system. Change data capture (CDC) is a way of doing the extract step: it reads the inserts, updates, and deletes recorded by the source database and delivers only those changes, so whole tables are not copied again.

Common misconceptions

  • "ELT skips the transformation." It moves it. The example needed the same casting, deduplication, and filtering that an ETL job would do.
  • "Raw data in the warehouse is ready to query." The first query against the raw table failed on one bad value. Raw tables are the input to staging queries, not something to report from.
  • "ETL is obsolete." Google, Microsoft, and AWS each document cases where it is the better choice.
  • "ELT is a product." It is a pattern: a loader, a warehouse, and SQL transformations, often from different vendors.

Frequently Asked Questions

What are the key differences between ETL and ELT?

ETL transforms data on a separate server and loads only the result. ELT loads the raw data and transforms it inside the warehouse with SQL. ELT therefore keeps the raw data available for rebuilding tables when logic changes, and ETL keeps raw data, including sensitive fields, out of the warehouse.

Which is better for a cloud data warehouse: ETL or ELT?

ELT is the usual recommendation. Google's BigQuery documentation recommends it to most customers, and AWS calls it the standard choice for modern analytics. ETL is the better fit when data must be masked or reduced before it lands, or when the target system cannot do the transformation work.

How do ETL and ELT differ in handling real-time data?

Neither term describes real-time processing. Microsoft's architecture guide treats both as batch approaches that run on a schedule, and describes streaming, where data is processed as it arrives, as a separate design. How fresh the data is depends on how often the pipeline runs, not on the order of the steps.

Can ETL and ELT be used together?

Yes. One source can go through ETL because its sensitive fields have to be removed before loading, while the rest are loaded raw and transformed in the warehouse. AWS and dbt Labs both describe mixed setups of this kind.

How do the tools differ for ETL and ELT?

An ETL tool runs the transformation on its own engine before loading. Microsoft names SQL Server Integration Services and Google names Cloud Data Fusion as examples. An ELT setup splits the work: a loader such as Fivetran or Stitch copies raw data into the warehouse, and a transformation tool such as dbt or Dataform manages the SQL that runs there.

Primary sources and further reading

The SQL in this article was run on PostgreSQL 16, and the output shown is what it returned. Vendor pages were read in November 2026.