Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie - wildcard search

Status
Not open for further replies.

ericksoda

Programmer
Oct 22, 2001
60
US
I have been reading the online documentatin but have not been able to make this work.

I have a table with a SEARCHNAME column which has uppercase lastname, firstname middlename, for example:
"LASTNAME, FIRSTNAME M"
"LANDRY, FILBERT W"

I want to search based on partial last and first names.

I tried this query:
SELECT * FROM PERSON WHERE SEARCHNAME LIKE 'LA%,FI%';

but it returns no rows. How do I make this wildcard search?

Thanks,

David
 
In your examples you have a space after the comma, but in your query you have omitted it.
 
Doh! Thanks! I can't believe it was that easy.

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top