Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this code be faster?
Message
From
20/08/2003 17:27:58
 
 
To
19/08/2003 15:00:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00821524
Message ID:
00822019
Views:
16
What about the following select statement:

SELECT * FROM insurance WHERE LEFT(po_name,2) >= 'SI' AND (LEFT(po_name,6) <= 'SMITH ' OR LEFT(po_name,6) <= 'SMITH*')

Your left statement will always be the length of the start string for the first part and the length of the second or ending string plus 1 for the second part of the statement.

But how do you know if they are entering all or part of a name?

Does this make sense?
Vicki Combs
Customized software for today AND tomorrow...
Applications and web sites designed, developed and maintained. (MBE)

"Change is inevitable...unless that's changed!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform