Hello Everyone,
Can you please let me know what is wrong with the query?
INSERT INTO Junction (Unique_ID, ID, WBS, Name, Duration_In_Days, Start_Date, Finish_Date, Recurring, Milestone, Resource_Unique_ID, Resource_ID, Resource_Name, Resource_Initials )
SELECT Task.Unique_ID, Task.ID, Task.WBS, Task.Name, Task.Duration, Task.Start_Date, Task.Finish_Date, Task.Recurring, Task.Milestone, Assignment.Resource_Unique_ID, Assignment.Resource_ID, Assignment.Resource_Name, Assignment.Resource_Initials
FROM Task, Assignment;
The Junction table is the table I want to paste new records from other table into. My goal is to transfer the records from the Task table which has nine attributes, and these nine attributes are the same as the ones in the Junction table, and the rest of the attributes in the Junction Table come from the Assignment table.
Thus, when I excecute the above query to Append the Junction table, it pastes the new records right below the last record in the Junction table instead of replace the existed records of the first nine attributes in the Junction table.
For example, I previously have 48 records in the Junction take, and 100 records in the Task table. I want the extra 52 records in the Task table added to the Junction table to make it 100 records instead of just 48 records, where all the attribute names in the Task table matches with the names in the Junction table.
Thank you very much for your help.
DTiff
Can you please let me know what is wrong with the query?
INSERT INTO Junction (Unique_ID, ID, WBS, Name, Duration_In_Days, Start_Date, Finish_Date, Recurring, Milestone, Resource_Unique_ID, Resource_ID, Resource_Name, Resource_Initials )
SELECT Task.Unique_ID, Task.ID, Task.WBS, Task.Name, Task.Duration, Task.Start_Date, Task.Finish_Date, Task.Recurring, Task.Milestone, Assignment.Resource_Unique_ID, Assignment.Resource_ID, Assignment.Resource_Name, Assignment.Resource_Initials
FROM Task, Assignment;
The Junction table is the table I want to paste new records from other table into. My goal is to transfer the records from the Task table which has nine attributes, and these nine attributes are the same as the ones in the Junction table, and the rest of the attributes in the Junction Table come from the Assignment table.
Thus, when I excecute the above query to Append the Junction table, it pastes the new records right below the last record in the Junction table instead of replace the existed records of the first nine attributes in the Junction table.
For example, I previously have 48 records in the Junction take, and 100 records in the Task table. I want the extra 52 records in the Task table added to the Junction table to make it 100 records instead of just 48 records, where all the attribute names in the Task table matches with the names in the Junction table.
Thank you very much for your help.
DTiff