Dear All,
this is my table
ex:
Tabl:1
p_id product_name stock low_stock_alert
1 pant 100 10
2 shirt 150 25
tabl:2
id p_id Quantity
1 1 2
2 2 15
3 1 4
4 1 8
…
and so on
if for example pant have 100 pies in stock and if tabl:2 booked pant is above 90 (quantity) show low stock message…
any suggestion please…?