0
Hello is possible to use the INNER JOIN
together with the INSERT
?
I have a table A with 3 columns X, Y and Z and table B with columns W, X and Y and I need to insert in table A the column W of table B, how could it be? I’m trying this way but I don’t get results :
INSERT INTO Categoria_cliente_teste (planejamento)
SELECT plano_orcamentario
FROM Categoria_clientes
INNER JOIN [ON cliente_fornecedor]
It is possible and quite common to use INSERT ... SELECT (depending on the case and you don’t even need JOIN). What did you try and what problem was found? EX:
INSERT INTO tabela A .... campo1, campo2 SELECT B.algo, C.algo FROM tabelaB JOIN tabelaC ON ...
– Bacco
Yes, there’s something to do with Inner Join, but it would be interesting to exemplify what you want to do. Add a better description of tables and code you’ve tried.
– EmanuelF
put what you tried into the question, to make it easier for those who see after
– Costamilam