Logical and Physical Query Processing Flashcards

1
Q

What are the two processing sides of T–SQL?

A

Logical processing and physical processing.

SQL Server 70-461 01-02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is logical query processing?

A

The conceptual interpretationof the query that defines the correct result. It determines “what” will be returned.

SQL Server 70-461 01-02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is physical query processing?

A

Processing of the query by the database engine. It determines “how” it will be returned.

SQL Server 70-461 01-02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What can optimization do?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the “keyed–in order” of the main query clauses?

A
  1. SELECT
  2. FROM
  3. WHERE
  4. GROUP BY
  5. HAVING
  6. ORDER BY

SQL Server 70-461 01-02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the logical query processing order of the main query clauses?

A
  1. FROM
  2. WHERE
  3. GROUP BY
  4. HAVING
  5. SELECT
  6. ORDER BY

SQL Server 70-461 01-02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In what order are the attributes in the SELECT clause processed?

A

Conceptually they are all processed at the same time.

SQL Server 70-461 01-02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How are expressions that appear in the same logical query processing phase processed?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly