In programs like Excel I can have a cell's value equal to some function of other cells in the table. For example typing "=C1*D1" into the value of cell E1 will cause E1 to equal the product of the other two cells. This product is automatically updated if the values of C1 or D1 are changed.
Is there any way to create similar functionality in SQL? I know I could handle this in the server's python code side of things by changing all database assignments I can find of these values to also change the relevant data that depends on them.
I'm stuck modifying an existing several thousand line server program and I'd prefer if there was a way to do this that doesn't rely on me not missing some database reference somewhere in the code.