Which is the correct order of execution of the above query?

You execute the following query for the first time:

Examine the SQL statement processing steps:
1. The value of the variable SAL is obtained to run the query.
2. The syntax of the query is checked
3. A parse tree for the query is generated
4. Semantics for the query are checked
5. The required rows are fetched
6. The SQL is executed to produce the required result.
Which is the correct order of execution of the above query?

You execute the following query for the first time:

Examine the SQL statement processing steps:
1. The value of the variable SAL is obtained to run the query.
2. The syntax of the query is checked
3. A parse tree for the query is generated
4. Semantics for the query are checked
5. The required rows are fetched
6. The SQL is executed to produce the required result.
Which is the correct order of execution of the above query?

A.
1, 2 3, 4, 5, 6

B.
1, 4, 2, 3, 6, 5

C.
2, 4, 1, 3, 6, 5

D.
2, 3, 1, 4, 6, 5

Explanation:

Incorrect:
A: First execute then fetch rows.
B: Check of syntax is before check of semantics.
C: Parse tree is before semantics.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


PS

PS

Correct answer is C as semantics is before parse tree

vasya_pupkin

vasya_pupkin

Agree.
C – correct.