Say I have a bunch of rows in a DB (SQLServer 2008 in this case) that can be used to create equations.
-----------------------------------------------------
OperationID | EquationID | Operation | Amount | Order
-----------------------------------------------------
1 | 1 | + | 12 | 1
2 | 1 | + | 12 | 2
3 | 2 | / | 2 | 3
4 | 2 | + | 12 | 1
5 | 2 | - | 2 | 2
-----------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
I …