---
title: "Query Plan — Database Glossary | Xata"
description: "The execution strategy chosen by the optimizer for a SQL statement. Represented as a tree of plan nodes (Seq Scan, Index Scan, Nested Loop, Hash Join, S..."
source: "https://xata.io/glossary/query-plan"
---

# Query Plan

Indexing

The execution strategy chosen by the optimizer for a SQL statement. Represented as a tree of plan nodes (Seq Scan, Index Scan, Nested Loop, Hash Join, Sort, Aggregate, etc.). Viewable with EXPLAIN.

Related terms

[EXPLAIN / EXPLAIN ANALYZE](/glossary/explain)[Planner / Optimizer](/glossary/planner)

[← Back to glossary](/glossary)
