What is the order in which the SQL query is executed? list
them in order.

Answers were Sorted based on User's Feedback



What is the order in which the SQL query is executed? list them in order...

Answer / ela tiku

At runtime the compiler first takes the table name from
where the data is to be retrieved (FROM <tablename>), then
it checks for the condition (Where <condition>) then it
selects the values to me displayed as o/p

Is This Answer Correct ?    6 Yes 1 No

What is the order in which the SQL query is executed? list them in order...

Answer / nandkumar karlekar

The order of Execution is as follows
1.From clause and joins
2.independent subqueries in the where clause
3.where clause last condition execute first but if the
index is present then these condiyions execute first

Is This Answer Correct ?    3 Yes 0 No

What is the order in which the SQL query is executed? list them in order...

Answer / l. meher

When a SQL query is getting executed it goes through the
following steps:

1) It goes to the shared pool which contains information
such as the parse tree and execution plan for the
corresponding statement.
2)Validate the SQL statement.
3)Validate the source.
4)Acquire locks.
5)Checks for previllages.
6)Parse the statement.
7)Execute the Query.
8)Fetch the value (only for select statement).
9)Generate the redo information.

If you have any doubt mail me at lmeher.tcs@gmail.com
Thanks..

Is This Answer Correct ?    5 Yes 4 No

What is the order in which the SQL query is executed? list them in order...

Answer / selvam

FROM
ON
JOIN
WHERE
GROUP BY
HAVING
SELECT
DISTINCT
ORDER BY
TOP

Is This Answer Correct ?    1 Yes 0 No

What is the order in which the SQL query is executed? list them in order...

Answer / suraj

Though it's not so clear on what type of SQL query.
If we want to see in what order does the SELECT query
executes; it'l like this.

SELECT .........
FROM ..........
WHERE ..........
GROUP BY ...........
HAVING ............

Is This Answer Correct ?    6 Yes 6 No

Post New Answer

More SQL Server Interview Questions

How to get a list of all tables with "sys.tables" view in ms sql server?

0 Answers  


How to find the second largest salary in the emp database and also How to find 3rd,4th and so on ........ in the emp database plz mail the answer @ mak2786@gmail.com

35 Answers   Oracle, Scend, TechInfini,


What is a transactions?

0 Answers  


What is use of except clause? How it differs from not in clause?

0 Answers  


After removing a table from database, what other related objects have to be dropped explicitly?

0 Answers  






What is catalog views?

0 Answers  


What about UPDATESTATISTICS ?

2 Answers   HCL, Intelligroup,


How to change a login name in ms sql server?

0 Answers  


If i am handling 150 servers then how to check the active jobs of all the servers?

0 Answers  


Do you know the capabilities of cursors?

0 Answers  


What is multi-statement table-value user-defined function?

0 Answers  


What command is used to create a database in the sql server and how?

0 Answers  


Categories