• That helps clarify. I wouldn't use MERGE for this. I converted your sample ddl into temp tables so it is easier to work with in a test database.

    create table #SourceTable

    (number int)

    create table #DestinationTable

    (number int)

    insert into #SourceTable values(1)

    insert into #SourceTable values(2)

    insert into #SourceTable values(3)

    insert into #SourceTable values(4)

    insert into #SourceTable values(5)

    insert into #SourceTable values(6)

    insert into #DestinationTable values(1)

    insert into #DestinationTable values(2)

    insert into #DestinationTable values(3)

    select *

    from #SourceTable

    where number not in

    (

    select number

    from #DestinationTable

    )

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/