Help with search query

From: Scott Schluer (usenet_at_webservicesinc.com)
Date: 09/10/04


Date: Fri, 10 Sep 2004 07:35:23 -0700

Two questions related to SQL searches (ideally everything will be in a
stored procedure):

I have an ASP.NET checkboxlist on a search page (this is a search of
properties for sale). The checkboxlist is responsible for displaying the
available amenities in a home (air conditioning, patio, garage, etc.). I
have a table tblAmenities with columns amenity_id and amenity_name. Another
table tblProperties with columns property_id, property_address, etc. Then a
lookup table that uses the property_id and amenity_id to associate amenities
with various properties.

My question is, when the user selects various checkboxes from this list
(whose values correspond to the amenity_id of the particular amenity they
chose), how do I structure the SQL statement to do the search?

Along with this question is how do I rate the results of my search by a
percentage match (among all of my search fields, including the amenities).
For example, with two identical houses, with the exception that one has 20
of their selected amenities, and the other only has 1, the one with 20
should be displayed first, along with an indicator: Percentage Match: x%.

Thanks,

Scott



Relevant Pages

  • Help with search query
    ... available amenities in a home. ... when the user selects various checkboxes from this list ... how do I structure the SQL statement to do the search? ... should be displayed first, along with an indicator: Percentage Match: x%. ...
    (microsoft.public.sqlserver.programming)
  • Search Query Question
    ... available amenities in a home. ... when the user selects various checkboxes from this list ... how do I structure the SQL statement to do the search? ... should be displayed first, along with an indicator: Percentage Match: x%. ...
    (microsoft.public.sqlserver.programming)
  • Re: Help with search query
    ... One answer for every questions related to SQL searches ... "Scott Schluer" wrote in message ... > available amenities in a home. ... when the user selects various checkboxes from this list ...
    (microsoft.public.sqlserver.programming)
  • Re: Help with search query
    ... One answer for every questions related to SQL searches ... "Scott Schluer" wrote in message ... > available amenities in a home. ... when the user selects various checkboxes from this list ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Creating a list of checkboxes dynamically
    ... // Get a SqlDataReader from the datalayer - basically a rowset from SQL ... you'll see there are 3 or 4 sections of checkboxes. ... the table called Gifts has two ... strTempRow = strTempRow + 1 ...
    (microsoft.public.dotnet.framework.aspnet)