0
I need to merge two tables imagem1
and imagem2
in a third table imagens
with SQL. They have exactly the same structure but with 1 query I can’t write all the data at once, so I need to make 2 queries.
I need a SQL to merge the tables into a third call imagens
. The starting point is shown in the image, I can do nothing different before that point.
The two tables have this structure ....
- ID
- IMMOVABLE
- CODE
- IMAGEM_G
- Imagem_p
In imagem1
does not have the data of IMAGEM_G while in imagem2
has not IMMOVABLE and CODE.
On the third call imagens
I need all this information together.
The
id
in both tables corresponds to the same image?– Rodrigo Rigotti
Yes, the Ids in both tables match the same record.
– Marcos Vinicius