Compare column in two tables

  • Hi

    I would like to compare rows which are in two different tables which have the same column and data type where the data in one table1 column (A) has repeated data. When new data is added to table1 column (A) the unique rows should be selected and added to another table2 column (A) on the same database.

    Both tables have the same column name but the rows in table1 column (A) are repeated while the rows in table2 column (A) are unique.

    Data is always added to table1 columnA everyday. How do i selected only the unique rows in table1 column (A) and add it to table 2 (A). To give an idea there are about 50,000 rows in table1 column (A) and about 1000 rows in table 2 column(A)

    Any help is much appreciated. New to SQL so please give in detail.

    Thanks.

  • Please don't cross post.

    Answered here: http://www.sqlservercentral.com/Forums/Topic440533-338-1.aspx

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

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