Hal Kaplan <> wrote:
> => [mailto:[EMAIL PROTECTED] On Behalf Of Kent Belan =>
> => Hello, => I need to seek the reverse of a character field. => I
> have an account number and the client wants to search by => the last
> X characters. => => The account number is a character field 20 spaces.
> =>
> => Example: acct #: 12345678
> => User enters 678 and finds all accounts that end in 678 =>
> => Anyone have a good solution ? =>
> => Thanks,
> => Kent
> =>
>
> Build multiple indices. The overhead will be quickly recouped the
> first time you try to locate a partial field that is embedded. If
> this is something that is going to change "whimsically," then rebuild
> the index every time you need to. Once the table is indexed the
> first time, subsequent index ops (on the same workstation) should be
> almost instantaneous.
Depends on how many inserts are going to take place. The index like that is
a poor idea for tables that get a good deal of new rows.
Stephen Russell
DBA / .Net Developer
Memphis TN 38115
901.246-0159
"A good way to judge people is by observing how they treat those who
can do them absolutely no good." ---Unknown
http://spaces.msn.com/members/srussell/
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.0.0/751 - Release Date: 4/7/2007
10:57 PM
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.