A Query Evaluation Plan is a program created by the DBMS query optimizer to execute a SQL query efficiently. It defines how the database will access and process data internally.
- Also called an access plan, as it determines how rows are retrieved
- Often resembles relational algebra expressions used by the DBMS

Executing a Query Evaluation Plan
In many relational algebra expressions it is very necessary to translate expression and also to annotate the translated relational algebra expression with the commands used for stating and evaluating operation. And immediately after translating the user query, the system uses the query program.
Characteristics of Query Evaluation Plan
A Query Evaluation Plan defines how a DBMS executes a query by breaking it into structured steps. It helps the query engine analyze, process, and generate the final result efficiently.
- Also known as a query program or query questionnaire
- Fully analyzes the query before execution
- Uses annotated relational algebra steps called evaluation primitives
- Executes operations in sequence to produce the final query result
Optimization
Query optimization focuses on reducing the cost of executing a query by choosing the most efficient plan. The DBMS automatically handles this process, so users do not need to optimize queries manually.
- Different queries have different execution costs based on data access and operations.
- The system selects a cost-effective query program to improve performance.
- Efficient plans reduce time, memory usage, and resource consumption.
- Each execution step is analyzed to ensure minimal overall cost.