0
I’m trying to link two tables so the result looks like this;
Address for test of the query http://sqlfiddle.com/#! 9/d9acad/1
I tried to use the command below;
SELECT
item_inventarios.sku,
item_inventarios.cod_setor,
inventario_ambientes.setor_ini,
inventario_ambientes.setor_fim,
inventario_ambientes.desc_ambiente
FROM
item_inventarios,inventario_ambientes
WHERE
item_inventarios.`id_inventario`='46'
and inventario_ambientes.id_inventario = item_inventarios.id_inventario
Some guidance on your question: 1) Explain better the expected end result. What is the relationship? What is the relationship between the data pointed out? 2) Add to your question what you have already tried to do, even if it has not worked. So we have a point to break from. 3) Instead of inserting images, enter the data. It makes it easy for us to copy and help with a response.
– Sorack
Thank you! I’ve adjusted the question.
– Hugo Rutemberg
Still left to put what has as image as text so that we can reproduce your code.
– Sorack
Here. you can test my database; http://sqlfiddle.com/#! 9/d9acad/1
– Hugo Rutemberg