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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Execution Plans

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-05-19 : 17:20:26
writes "Hello,

I have Just Some Queries in SQL 2000 That I Think They Can Be Better and Faster Done, If I Can Change Execution Plans For Them.

e.g. It seems that some projections on Joined tables before joining them is so good, but i think that Execution Plans don't do them.

See This:

1)
select * from Table1 , Table 2
Where
Table1.AnyField = Table2.AnyField
And Table1.OtherField = Value1

2)
select * from Table1 , Table 2
Where
Table1.OtherField = Value1
and Table1.AnyField = Table2.AnyField

Does Execution Plan, Make Different Plan for Those two Codes?
If So or not , What can I do?


Thanks
yadegari"

daveman6610
Starting Member

8 Posts

Posted - 2004-05-19 : 23:06:32
Execution plan should be the same for both
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-05-19 : 23:14:26
Hi Dave. You're on late. lol

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -