Skip to content
Advertisement

How to update a third table with the result of a select inner join of another two tables

I have an access data base with three tables named DD, Export , and RPL

I have the result of a inner join betweent EXPORT AND DD which is working fine

Now with those results I want to update a third table RPL which is currently empty but has those fields to be populate for example RPL.[Hotel ID] should be the Hotel ID that results from the query below

The previous query copies the result into a new table, i want to use the one that exists already Any help it is appreciated it

Thank you

Advertisement

Answer

As your example is not clear, I will write a simpler one to clarify how to update a table use the data joined by other tables, now there are three tables ATable,BTable,CTable, the colums of ATable is id,value1,value2, the columns of BTable is id,value1, the colums of CTable is id,value2, now we will update ATable by use the data joined by the B and C, the SQL is like below:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement