Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid subs() on left side of equal
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
How to avoid subs() on left side of equal
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01434947
Message ID:
01434947
Views:
121
Performance wise I know we should avoid having scalar functions on the left side of the equal in the where clause. Anybody have an idea on how to avoid it in something like below?

Thanks
Select min(sdatetime) as FirstDate 
from dbo.Meetings (nolock) 
where iscancelled=0
and roomclosed=0
and isblock=0
and substring(scheduledBy,1,4)<>'TEST'
and substring(scheduledBy,1,3)<>'CQI'
Next
Reply
Map
View

Click here to load this message in the networking platform