Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 137549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:07:25+00:00 2026-05-11T07:07:25+00:00

People have different ideas of how to search for the same term. For example

  • 0

People have different ideas of how to search for the same term.

For example Tri-Valley, Trivalley, Tri Valley (and possibly even incorrect spellings)

Currently that search is done like this

SELECT * FROM `table` WHERE `SchoolDistrict` LIKE '%tri valley%';   

Is there an easy way to say ‘space dash or no space’ without writing out three like statements?

It seems like it could easily be done:

SELECT * FROM `table` WHERE `SchoolDistrict` LIKE '%tri%valley%'; 

But this only works if the initial input is ‘tri-valley’ or ‘tri valley’ If the initial input is ‘trivalley’ I have no idea where to place the % (theoretically that is, actually, I do, as we are only looking at about a dozen different school districts, but I’m looking to solve the larger problem)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:07:26+00:00Added an answer on May 11, 2026 at 7:07 am

    You could consider using SOUNDEX, or SOUNDS LIKE if you have a lot of incorrect spellings. If you’ve got a lot of rows (or even if you don’t), it might be wise to store the output of the SOUNDEX in an additional column.

    I’d also recommend — in the interests of accuracy — introducing a separate table with an authoritative list of school districts, and run a query to find those which aren’t in that list.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since I'm sure many people have different standard, I've made this post a community
I have used several different scripts that people have suggested for trying to parse
I have two different arrays. One array, a, for a list of people. My
At work we have 4 people working together on a few different projects. For
I curious to how different people solve integration of systems. I have a feeling
I have a bunch of ideas for different games (for programmers) where you have
I have a form that needs to allow people to search for hikes, hiking
People have been developing own solutions to the following problems: Consistent messaging frameworks for
Some people have suggested that when doing an estimate one should make a lower
Many people have argued about function size. They say that functions in general should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.