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 3841672
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:41:07+00:00 2026-05-19T15:41:07+00:00

Trying to do this…I have a column type_style possible values would be 2 Story,Beach

  • 0

Trying to do this…I have a column type_style possible values would be 2 Story,Beach House or Contemporary,2 Story Im trying to use type_style as a search query, but values for the search would be 2 Story, Beach House, Contemporary. Each row could be a combination of any of the type_style’s. My original idea was to do

WHERE `type_style` LIKE '%contemporary%'

Which would work fine if the user could only select one style, the client wants to have the users be able to select more than one style, so how would I go about doing this? The database is updated nightly from the state MLS, so aside from assigning a FULLTEXT index or something I cant change the way the type_style column is setup, any ideas? Any way to combine the IN statement and a LIKE-style comparision? Im pretty sure I could do something like

WHERE 
MATCH (`type_style`) AGAINST ('*2 story*' IN BOOLEAN MODE)
OR
MATCH(`type_style`) AGAINST ('*contemporary*' IN BOOLEAN MODE)

But this would stand to be a very large query as there are about 20 style types….any other way to do this????

  • 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-19T15:41:08+00:00Added an answer on May 19, 2026 at 3:41 pm

    have table with type_styles:

    1. 2 story
    2. contemporary
    3. beach house

    third table connecting:

    record_is, style_id

    search on third table, so you can have multiple answers

    if combine text ‘2 story, contemporary’ is needed use CONCAT_GROUP

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

Sidebar

Related Questions

I have been trying this for a week or so now. I have followed
Hi i have been trying this for hours upon hours, this forum is my
I´m trying this simple script: require 'prawn' template_file_name = File.join(File.dirname(__FILE__), 'template.pdf') pdf_file = Prawn::Document.new(:template
I am trying this code in Javascript. But its not working.... The postData is
I am trying this, but it doesn't seem to work: users = User.find() This
I'm trying this SQL statement but I keep getting an error Run-time error '3061':
I am trying this: std::wstringstream wstrStream; std::wifstream wifStream(str.c_str()); wifStream >> wstrStream; but I got
I am trying this but is not working... why? <html> <body> <script type=text/javascript> var
I am trying this code to download a file from a Windows machine using
I am trying this Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); Cursor cursor1

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.