Answer the question
In order to leave comments, you need to log in
How to create a MySQL query from two tables?
It is necessary to make a calculation according to the formula $x = (w * efr) / rft * (1 + (cos / 10)
:. And put the data in 'result'.
It is quite simple to make a calculation from one table, but I can’t figure out how to take data from the second one.
I would be very grateful for your help in making a request.
Answer the question
In order to leave comments, you need to log in
UPDATE Prod SET result = w*eft/(SELECT Forc.rft * (1 + Forc.cos / 10) from Forc where Forc.id=Prod.id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question