elizondo82
Member
- Joined
- Sep 16, 2022
- Messages
- 12
- Programming Experience
- 10+
Hello, I search from Google a lot example, but some codes is not working.
I try display a list of sku,qty,total,etc...
Example:
ID | Sku | Total | Qty
1 87 58.0 10
2 87 58.0 5
3 87 58.0 5
4 125 15.2 45
5 125 15.2 45
I want subtraction the qty of sku = 87, the subtraction is 18
so the result is:
ID | Sku | Total | Qty
1 87 58.0 0
2 87 58.0 0
3 87 58.0 2
4 125 15.2 45
5 125 15.2 45
I see from SQL server is with Over(order by id) there is working, but I want with C# Linq, some idea?
Thanks!!
I try display a list of sku,qty,total,etc...
Example:
ID | Sku | Total | Qty
1 87 58.0 10
2 87 58.0 5
3 87 58.0 5
4 125 15.2 45
5 125 15.2 45
I want subtraction the qty of sku = 87, the subtraction is 18
so the result is:
ID | Sku | Total | Qty
1 87 58.0 0
2 87 58.0 0
3 87 58.0 2
4 125 15.2 45
5 125 15.2 45
I see from SQL server is with Over(order by id) there is working, but I want with C# Linq, some idea?
Thanks!!