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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REGEXP to find "foo-bar" and "foo bar" 1

Status
Not open for further replies.

sjaak538

Programmer
Mar 22, 2004
2
NL
Hello


Does somebody know how to solve this

select * form geo,places where geo.name = places.name

Where geo.name could be New York
and geo.places could be New-York

Thank for have a look


Sjaak
 
Do you mean, treat spaces the same as hyphens in all situations?
If so, the following should work:

WHERE REPLACE(geo.name,' ','-') = REPLACE(places.name,' ','-')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top