0
I do not know how to consult in two tables of the same bank.
tb_chamados
id = 1 | 2
fkidempresa = 47 | 33
resumo = descrição do chamado | descrição do chamado
tb_empresas
id = 47 | 33
nome = Nome da empresa | Nome da empresa
I make an appointment with select * from chamados
but the result comes fkidempresa
, I would like you to return the name that is in the companies table and not the fkidempresa
.
Thiago, this question already exists, I will mark it as duplicate. The following is the question on the link: https://answall.com/questions/272290/como-fazer-inner-join-mysql
– Leonardo Bonetti