• Hi Carknee,

    quote:


    The records look like this in one table 00123 and 123 in the other. However, there are a few instance where it is 00123ed of 123ed. Therefore CASTing them to int will not work for all records.


    is it coincidence in your example that in both case you use 'ed' or is this a constant?

    BTW, not the best prerequisites for a join, I think

    Cheers,

    Frank

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]