SQL Lineage Extractor
Reads write statements and lists which source tables feed which target tables.
Loading the tool…
How to use this tool
- Paste the statements that write data: INSERT, CREATE TABLE AS, CREATE VIEW, UPDATE or MERGE.
- Select Extract lineage for the source-to-target table, or As a diagram for Mermaid source.
- Download the CSV to attach to a design document or a change request.
What sql lineage extractor does
Lineage answers a simple question that is usually hard to answer: where did this table’s data come from. This reads INSERT, CREATE TABLE AS, CREATE VIEW, UPDATE and MERGE statements and produces one row per source-to-target edge, marking sources that are actually CTE names defined in the same statement.
This is statement-level lineage from the SQL you paste. It does not know about jobs that run outside these statements, loads performed by a tool rather than by SQL, or which specific column feeds which — that is column-level lineage and needs more than text. Use it to map a script you already have; do not treat it as a complete picture of a platform.