Re: & in the where clause

From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 10/22/04

  • Next message: Steve Kass: "Re: & in the where clause"
    Date: Sat, 23 Oct 2004 00:23:49 +0530
    
    

    not sure, why do you want to do that. but if you are using "=" equal
    operator for comparison then query will look for exact match in the table.
    If exact match is not found then you will not retrieve any row.

    either change source data or change the value that is being passed in where
    clause.

    you may try something as follows:

    SELECT discounts.*, discounttype AS Expr1
    FROM discounts
    WHERE replace(discounttype, ' ', ' & ') = 'Initial & Customer'

    -- 
    Vishal Parkar
    vgparkar@yahoo.co.in | vgparkar@hotmail.com
    

  • Next message: Steve Kass: "Re: & in the where clause"

    Relevant Pages

    • Re: EXACT MATCH Problem, PLEASE HELP!!!
      ... >The problem that we are having is that if you type in any query other than ... >the exact match for the record, ... >search for Elvis Presley you get no results. ... >type Presley, Elvis....the exact match. ...
      (microsoft.public.access.queries)
    • Re: Full text search
      ... compare each record for an "exact match" and for the percentage match. ... on the performance of the query. ... > I have a requirement in which customer fills in a form. ...
      (microsoft.public.inetserver.asp.db)
    • funny search results with contains clause
      ... the first is a query with a "simple term" and the second one with a ... mssql docu says that a simple term "specifies a match for an exact word", ... "hammerschmied" - this is not an exact match for me; ...
      (microsoft.public.sqlserver.fulltext)
    • Re: Find Unmatched records
      ... How about using the unmatched query wizard? ... direct emails implies that you are willing to hire and pay someone for your ... (Exact match means ALL fields are the ...
      (microsoft.public.access.queries)
    • Re: Need some query help
      ... It is possible that the times aren't an exact match due to rounding ... You might try running a query to select on the exact date and time and see what ... > FROM Bookings ... > of conflicting appointments for a specific prospective appointment. ...
      (microsoft.public.access.queries)