how to join result table in mysql

Solutions on MaxInterview for how to join result table in mysql by the best coders in the world

showing results for - "how to join result table in mysql"
Paula
18 Sep 2017
1SELECT inv.product_id, inv_stock.stock
2FROM inventories AS inv
3
4JOIN 
5
6(SELECT product_id, stock
7FROM inventories ) AS inv_stock
8
9ON inv.product_id = inv_stock.product_id
10 ;