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

hi to all teachers,... Friends who write in the query mode Full text Search in Sql Server have experience Who make(Convert) this Stored Procedure as a normal Full text Search, which contains and .. Is used, into Advance of the tips I have thanked all friends perfection. Email : rezaafandi@yahoo.com Create PROCEDURE Sp_student @fname varchar(50), @lname varchar(50), @tel varchar(50), @code varchar(50), @adr varchar(50), @search_operation varchar(50), @totalRowCount bigint output AS begin if @search_operation = 'and' begin SELECT f3,f4,f5,f6,f7 FROM tb_student WHERE( f5 like '%' + @fname + '%' and f4 like '%' + @lname + '%' and f6 like '%' + @tel + '%' and f7 like '%' + @code + '%' and f3 like '%' + @adr +'%' ) select @totalRowCount = @@rowcount end

0 Answers  


employee table has employee id ----------- empid ---------------- 1 2 3 3 3 4 5 5 5 6 6 6 7 here the values r repeated two times.how to select the repeated values only.i.e 3,5,6 should alone come.

3 Answers  


Tell me about Triggers?

3 Answers   Cap Gemini,


how to copy only distinct data into another table which is not already exist in database?

2 Answers   Spectra,


Can you please explain the difference between primary keys and foreign keys?

0 Answers  






Write the Syntax for Cursors.

2 Answers   CarrizalSoft Technologies, HP,


What is a ddl statement?

0 Answers  


How to create new table with "create table" statements?

0 Answers  


How to move database physical files in ms sql server?

0 Answers  


What is a cursor in SQL Server 2000 and their types?

8 Answers  


What is the difference between HAVING clause and the WHERE clause?

7 Answers  


Difference between 2NF &3NF ?

0 Answers   Cap Gemini,


Categories