Data engineering and IT

Common table expression (CTE)

  • Data engineering and IT

Definition

A named, temporary result inside a SQL query that makes long queries easier to read and reuse.

Also called

CTE, Common table expression

For your role

Choose your role to see what this term means in your work.

Why it matters

It makes complex SQL easier to read, check and maintain.

Where it is used

SQL code reviews and analytics queries.