ADBS Chapter 02 Updated
ADBS Chapter 02 Updated
Chapter 2
Query Processing and Optimization
Introduction Strategies for Query Processing
DBMS techniques to process a query
Scanner identifies query tokens
Query optimization
Planning a good execution strategy
SQ L
Query language used in most RDBMSs
operators
Contains single SELECT-FROM-WHERE expression
• Example:
– Inner block
– Outer block
anti-join
A row of T1 is rejected as soon as
T1.x finds a match
with any value of T2.y
A row of T1 is returned only if
T1.x does not match
with any value of T2.y
Copyright © 2016, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe
Introduction
Query optimization
Conducted by a query optimizer in a D BMS
Query graph
Relation nodes displayed as single circles