Hello,I am using SQL Server 2014 and I want to update all the columns in the table based on two unique columns from another table (AS400 table):For example column 1 "Sequence" and column 2 "Type":Sequence Type Name Address City State Zip777 B James Hamilton 123 Main St. Encino Ca 91411777 S James Hamilton 123 Main St. Encino Ca 91411 There will always be duplicate Sequence number, but the type will be unique the comination of the two columns will always be unique. If there are no Sequence number 777 in my SQL table, but the AS400 table has it I want to update the Sql table to include Sequence 777 and it's respective Type "B" or "S" alone with the other columns are Name, Address, City State, Zip in another words all the columns will be populated. The table is call "CustTicket". Also, I was wondering if I can you a "Merge" In any case I have never have the need to use an "Update" or "Merge" until now. if anyone can assist me with the coding I will appreciate the help. Thank you in advance.
↧