W
W
wideShift2022-04-18 22:17:15
SQL
wideShift, 2022-04-18 22:17:15

Is it true that the logical order of query execution may not coincide with the scheduler?

The logical order of processing a SELECT statement is:
FROM
ON
JOIN
where
GROUP BY
WITH CUBE or WITH ROLLUP
HAVING
SELECT
DISTINCT
ORDER BY
TOP

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Akina, 2022-04-18
@Akina

The order in which a query is executed may not match its text.
But it coincides with the plan by 100% - well, simply because it is carried out according to this plan.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question