Procedure to convert an SQL query that
does not contain
a sub-query
SQL command that
does not contain
a sub-query:
The corresponding
parse tree is
as follows:
Procedure to convert an SQL query that
does not contain
a sub-query
SQL command that
does not contain
a sub-query:
The corresponding
initial query tree is
as follows:
Example 1: coverting an SQL query (with no sub-query) into
an (initial) query plan
The SQL query and
the corresponding
parse tree:
Example 1: coverting an SQL query (with no sub-query) into
an (initial) query plan
Converting
the parse tree to
its
initial (logical) query plan:
Procedure to convert an SQL query that
contains
a GROUP BY clause
SQL command containing
a GROUP BY clause:
The corresponding
parse tree is
as follows:
Procedure to convert an SQL query that
contains
a GROUP BY clause
GROUP BY
SQL query and its
corresponding
initial query tree:
Example: coverting a GROUP BY
SQL query into
an (initial) query plan
Converting
the parse tree to
its
initial (logical) query plan:
❮
❯