Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SELECT

Author  Topic 

rn5a
Starting Member

25 Posts

Posted - 2008-11-03 : 01:47:38
Suppose I have this SELECT query:

SELECT....FROM MyTable WHERE....GROUP BY....

In which order do the various clauses like SELECT, FROM, WHERE etc. get executed?

Thanks,

Ron

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-03 : 02:51:06
i think order is as follows
WHERE->GROUP BY->SELECT
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-11-03 : 03:59:47
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=113524#442314

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -