Академический Документы
Профессиональный Документы
Культура Документы
E 2 2 2 21 3 333
F 2 2 2 22 3 333
G 2 2 2 23 3 333
H 2 2 2 21 4 333
I 2 2 2 22 4 333
J 2 2 2 23 4 333
K 2 2 2 21 5 0
L 2 2 2 22 5 0
M 2 2 2 23 5 0
N 2 2 2 21 6 333
O 2 2 2 22 6 333
P 2 2 2 23 6 333
Note: Dont think for one second that the SQL Anywhere query processor
actually builds a result set like this for every select. If it did that, some queries
would take years to execute and would consume all the RAM and disk space
thats ever been manufactured. In reality, the query processor takes many short-
cuts, and does as little unnecessary work as possible in order to speed things up.
This step-by-step list is only a conceptual list, to explain how all the clauses fit
together and contribute to the final result.
Step 2: With the exception of aggregate function calls and NUMBER(*) calls,
the items in the select list are evaluated and appended to each row in the candi-
date result set. This may lead to some duplication between virtual columns and
select list items but that will only be temporary. Eventually all the virtual col-
umns will be eliminated, but they are still needed for a while.