• I don't think a simple DISTINCT will do it since it would return two rows ("Test." and "Test..") where one ("Test") is expected.

    Maybe one of the following approaches will work:

    SELECT DISTINCT (LEFT(yourColumn,4)) FROM yourTable

    SELECT DISTINCT (REPLACE(yourColumn,'.','')) FROM yourTable

    But that's just guessing based on your sample data...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]