> Sounds like a SQL problem. > Data -> database -> query -> answer :) It isn't because it is trying to solve a multivariate series of problems. X + 2Y - 3Z = 8 X*Y/Z = 12 Solve for X, Y and Z (which you can't in this case because there is one fewer equations than you have variables). SQL can't do this.