What are the steps to process a single SELECT statement?

What are the steps to process a single SELECT statement?

Steps
a. The select statement is broken into logical units
b. A sequence tree is built based on the keywords and expressions in the form of the logical units.
c. Query optimizer checks for various permutations and combinations to figure out the fastest way using minimum resources to access the source tables. The best found way is called as an execution plan.
d. Relational engine executes the plan and processes the data

What are the steps to process a single SELECT statement?

SQL Server uses the following steps to process a single SELECT statement:
1. The parser breaks SELECT statement into logical units, such as keywords, expressions, operators, and identifiers.
2. A query tree is built.
3. The query optimizer then determines the best steps that can return fastest result while consuming the fewest resources.
4. The relational engine begins executing the execution plan, requesting the storage engine to pass up data.
5. The relational engine processes the data returned from the storage engine into the result set format and returns the result set to the client.
What are the restrictions while creating batches in SQL Server?
SQL server batches - CREATE DEFAULT, CREATE PROCEDURE, CREATE RULE, CREATE TRIGGER, and CREATE VIEW statements cannot be combined with ......
Explain GO Command
GO Command is used to signal the end of a batch........
Significance of NULL value and why should we avoid permitting null values
SQL Server NULL values - Null means no entry has been made. It implies that the value is either unknown or undefined........
Post your comment