Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to join result table in mysql

SELECT inv.product_id, inv_stock.stock
FROM inventories AS inv

JOIN 

(SELECT product_id, stock
FROM inventories ) AS inv_stock

ON inv.product_id = inv_stock.product_id
 ;
 
PREVIOUS NEXT
Tagged: #join #result #table #mysql
ADD COMMENT
Topic
Name
9+5 =