如何从一个表的前一行中减去(或添加)一行(stock_details)..并在另一个表中显示结果(item_details)..??
1st table:stock_details
----------+----------+-----------
stock_name | quantity | type
------------+----------+----------
laddu | 200 | PURCHASE
Ghee | 50 | ISSUE
2nd table:item_details
----------+----------
stock_name | quantity
------------+---------