Jump to content

A Question about... Frequently Asked Questions


Recommended Posts

Hi

 

On Yahoo's contact us page they display a form where you post a question and it returns "relevant" frequently asked questions which you can choose from for more information.

 

I presume the FAQ database table just contains a list of questions as displayed in the results.

 

But what I'd like to know is how would you structure the sql query using the question that was asked to search against the records to retrieve the most relevant results?

 

for eg...

 

User entered Question:  "The buyer has not paid me"

 

"select * from faqtable where

question like '%the%'

or question like '%buyer%'

or question like '%has%'

or question like '%not%'

or question like '%paid%'

or question like '%me%'"

 

 

Is that the "right" way to structure the query or is there a better way to do it?

 

Thanks,

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.