Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing in a subset of a string
Message
From
13/10/2008 21:40:57
Moacyr Zalcman
Independent Consultant
São Paulo, Brazil
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Indexing in a subset of a string
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01354732
Message ID:
01354732
Views:
56
Hi, everybody

I need to select a subset of a string field, e.g., substring(myfield,1,10)+ substring(myfield,25,5).
I thought in two approaches:

1- Create an calculated field and index it
2-Create a view with that subset and index it.

Is there any better or simpler way to do that?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform