I need to merge two tables imagem1
and imagem2
into a third table imagens
with SQL . They have exactly the same structure but with 1 query I can not write all the data at once, so I need to do 2 queries.
I need a SQL to merge the tables into a third call imagens
. The starting point is the one shown in the picture, I can not do anything different before that point.
The two tables have this structure ....
- ID
- IMOVEL
- CODE
- IMAGE_G
- PICTURE_p
In imagem1
you do not have the IMAGE_G data while in imagem2
you do not have IMOVEL and CODE .
In the third call imagens
I need all this information together.