I have two tables and their only difference is one column is missing from one of the tables. I’m getting the tables from two separate datasets. I want to move all data with an additional column to the new dataset.
How can I approach this operation?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would recommend doing this all in SQL and running the statement from C# if required.
Otherwise loop through one of the result sets and add them row by row to the other.
SQL:
or if you just wanted to SELECT the result (without updating the table):