ili_sophia
Registered User.
- Local time
- Tomorrow, 04:38
- Joined
- Aug 23, 2017
- Messages
- 40
Hi there,
I have two tables "MaximMainTable" and "ModifyTable" and i would like to combine the two tables to create a new one.
"MaximMainTable" consists of new records created.
"ModifyTable" gets its data from the "MaximMainTable" and the users can modify the records to make it "Additional","Replacement","Revised" under the POtype field.
both tables are updated regularly by the users.
I have to create a table where it consists of all the records from "MaximMainTable" and only records from "ModifyTable" that the POtype field states "Additional" and "Revised"
For the "revised" records, I need it to overwrite the original records in the "MaximMainTable". i have added a DateTimeStamp field in both tables hence the records need to overwrite with the latest stamp.
the records can be uniquely identified with the fields of "GLGPO" and "Line"
I have tried union but it would not work.
is there a way to do this?
I have two tables "MaximMainTable" and "ModifyTable" and i would like to combine the two tables to create a new one.
"MaximMainTable" consists of new records created.
"ModifyTable" gets its data from the "MaximMainTable" and the users can modify the records to make it "Additional","Replacement","Revised" under the POtype field.
both tables are updated regularly by the users.
I have to create a table where it consists of all the records from "MaximMainTable" and only records from "ModifyTable" that the POtype field states "Additional" and "Revised"
For the "revised" records, I need it to overwrite the original records in the "MaximMainTable". i have added a DateTimeStamp field in both tables hence the records need to overwrite with the latest stamp.
the records can be uniquely identified with the fields of "GLGPO" and "Line"
I have tried union but it would not work.
is there a way to do this?