FIFO Implementation in Inventory using SQL

后端 未结 2 1951
情歌与酒
情歌与酒 2020-12-14 04:41

This is basically an inventory project which tracks the \"Stock In\" and \"Stock Out\" of items through Purchase and sales respectively.

The inventory system follows

2条回答
  •  被撕碎了的回忆
    2020-12-14 04:51

    If cursors aren't an option, a SQLCLR stored procedure might be. This way you could obtain the raw data into .net objects, manipulate / sort it using c# or vb.net and set the resulting data as the procedure's output. Not only this will give you what you want, it may even turn up being much easier than trying to do the same in pure T-SQL, depending on your programming background.

提交回复
热议问题