0
I am doing a search where the user enters with the order ID and the system does return the request notice, products code and Qtd. And these data are arranged in 2 tables. (I did not create the database, it already came ready) However, with my query using innerjoin the console says that the search is ambiguous. tb_ped_sell is where the quantity and product id is tb_request for sale is where the order comments are.
SELECT TB_PED_VENDA_ITEM.ID_IDENTIFICADOR,
TB_PED_VENDA_ITEM.QTD_ITEM,TB_PEDIDO_VENDA.OBSERVACAO
FROM TB_PED_VENDA_ITEM INNER JOIN TB_PEDIDO_VENDA
ON TB_PED_VENDA_ITEM.ID_PEDIDO = TB_PEDIDO_VENDA.ID_PEDIDO
WHERE ID_PEDIDO=$id"
Thanks! I got it, haha
– ProgMen