Logical and Physical Query Processing Flashcards
What are the two processing sides of T–SQL?
Logical processing and physical processing.
SQL Server 70-461 01-02
What is logical query processing?
The conceptual interpretationof the query that defines the correct result. It determines “what” will be returned.
SQL Server 70-461 01-02
What is physical query processing?
Processing of the query by the database engine. It determines “how” it will be returned.
SQL Server 70-461 01-02
What can optimization do?
It can rearrange steps from logical query processing or remove steps altogether, but only as long as the result remains the one defined by logical query processing.
SQL Server 70-461 01-02
What is the “keyed–in order” of the main query clauses?
- SELECT
- FROM
- WHERE
- GROUP BY
- HAVING
- ORDER BY
SQL Server 70-461 01-02
What is the logical query processing order of the main query clauses?
- FROM
- WHERE
- GROUP BY
- HAVING
- SELECT
- ORDER BY
SQL Server 70-461 01-02
In what order are the attributes in the SELECT clause processed?
Conceptually they are all processed at the same time.
SQL Server 70-461 01-02
If you assigned an alias to an attribute or expression in the SELECT clause, can you use that alias in another expression in the SELECT clause?
No, because conceptually the attributes are all processed at the same time so the alias doesn’t exist yet to be used.
SQL Server 70-461 01-02
How are expressions that appear in the same logical query processing phase processed?
All expressions that appear in the same logical query processing phaseare conceptually processed at the same point in time
SQL Server 70-461 01-02