• Chain your charindexes.

    Basically, you'll want a where clause that looks like this:

    WHERE

    CHARINDEX( LastName, '/') > 0 -- / exists

    AND CHARINDEX( LastName, '/', CHARINDEX( LastName, '/') + 1) = 0 -- No second /s

    I'll avoid discussing how much the design decision there makes me cringe... it's very denormalized.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA