I need to be able to copy all of the records from one table into an output table (using ADO by the way). In the process of the copy is a merge between the original table and second table which in turn produces the output table.
The second table will need new columns produced for the data being entered. The problem is that the original table has many many fields to copy and typing these all by hand, adding the second table and then sending to the output table seems very long winded... ie...
INSERT INTO OutputTable(original1,original,original2,original3,original4 etc etc
secondtable1, secondtable2) VALUES (etc etc)
So in conclusion is it possible in the output table to already include these additional columns from table 2 into the output table which has it's structure built to mirror the original table? Then, copy the entire record from the original table in one go (by using * in SQL) and then add the additional data from the second table into that record?
I hope this makes some sense ;o) Thanks
The second table will need new columns produced for the data being entered. The problem is that the original table has many many fields to copy and typing these all by hand, adding the second table and then sending to the output table seems very long winded... ie...
INSERT INTO OutputTable(original1,original,original2,original3,original4 etc etc
secondtable1, secondtable2) VALUES (etc etc)
So in conclusion is it possible in the output table to already include these additional columns from table 2 into the output table which has it's structure built to mirror the original table? Then, copy the entire record from the original table in one go (by using * in SQL) and then add the additional data from the second table into that record?
I hope this makes some sense ;o) Thanks