Page 205 - DCAP402_DCAO204_DATABASE MANAGEMENT SYSTEM_MANAGING DATABASE
P. 205
Database Management Systems/Managing Database
Notes Figure 12.1: Query Processing
12.1.1 Optimisation
A relational algebra expression may have many equivalent expressions.
Example: ( (EMP)) is equivalent to ( (EMP)).
(salary < 5000) salary salary salary <5000
Each relational algebraic operation can be evaluated using one of the several different algorithms.
Correspondingly, a relational-algebraic expression can be evaluated in many ways.
An expression that specifies detailed evaluation strategy is known as evaluation-plan, for example,
you can use an index on salary to find employees with salary < 5000 or we can perform complete
relation scan and discard employees with salary 5000. The basis of selection of any of the
scheme will be the cost.
198 LOVELY PROFESSIONAL UNIVERSITY