Where clause

  • Hi all, a simple one I hope:

    I'd like a query that checks for the inclusion of a value:

    SELECT *

    FROM JS20040408

    WHERE field2 CONTAINS XXXX

    Field2 MIGHT contain a value before, after, or on both sides of xxxx.  I need to return all rows containing xxxx, regardless of whatever other data is in the field as well.

    I thought about 'Like' with the %, ie. Like %xxxx%, but can't verify it on a system yet.

    Thanks,

     

    KS.

     

  • Your correct.  Like %xxxx% will retrun all rows with xxxx in that column regardless of where in that column its found.

    Francis

  • Thanks!

     

    KS

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply