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

  • SEARCH
  • Home
  • 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 4023164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:33:54+00:00 2026-05-20T10:33:54+00:00

Given your data stored somewhere in a database: Hello my name is Tom I

  • 0

Given your data stored somewhere in a database:

Hello my name is Tom I like dinosaurs to talk about SQL.  
SQL is amazing. I really like SQL.

We want to implement a site search, allowing visitors to enter terms and return relating records. A user might search for:

Dinosaurs

And the SQL:

WHERE articleBody LIKE '%Dinosaurs%'

Copes fine with returning the correct set of records.

How would we cope however, if a user mispells dinosaurs? IE:

Dinosores

(Poor sore dino). How can we search allowing for error in spelling? We can associate common misspellings we see in search with the correct spelling, and then search on the original terms + corrected term, but this is time consuming to maintain.

Any way programatically?

Edit

Appears SOUNDEX could help, but can anyone give me an example using soundex where entering the search term:

Dinosores wrocks

returns records instead of doing:

WHERE articleBody LIKE '%Dinosaurs%' OR articleBody LIKE '%Wrocks%'

which would return squadoosh?

  • 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. Editorial Team
    Editorial Team
    2026-05-20T10:33:54+00:00Added an answer on May 20, 2026 at 10:33 am

    If you’re using SQL Server, have a look at SOUNDEX.

    For your example:

    select SOUNDEX('Dinosaurs'), SOUNDEX('Dinosores')
    

    Returns identical values (D526) .

    You can also use DIFFERENCE function (on same link as soundex) that will compare levels of similarity (4 being the most similar, 0 being the least).

    SELECT DIFFERENCE('Dinosaurs', 'Dinosores'); --returns 4
    

    Edit:

    After hunting around a bit for a multi-text option, it seems that this isn’t all that easy. I would refer you to the link on the Fuzzt Logic answer provided by @Neil Knight (+1 to that, for me!).

    This stackoverflow article also details possible sources for implentations for Fuzzy Logic in TSQL. Once respondant also outlined Full text Indexing as a potential that you might want to investigate.

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

Sidebar

Related Questions

Given a string like String a=- = - - What is your name?; How
I have read these very good questions on SO about SQL stored procedures: When
I have some xml data stored in database (sqlserver) in following format: eg. email
I have a SQL Server 2005 database that stores data for multiple users. Each
Being stuck with a legacy database schema that no longer reflects your data model
Given an app (your app) and a certain action it has, is it possible
I would like you to give me your feedback on which method consumes less
Given that the web application doesn't have su privileges, I'd like to execute a
this website gives a great example of how to get all the data stored
i'm a little lost in the timezone :) I have data stored with the

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.