I want to multiply 2 cells for each row and put the value of that in the last column called Total. Can this be done by a normal query?
Example:
Pieces | Price | Total
6 | 4 | null // should be 24
2 | 10 | null // should be 10
I want to multiply 2 cells for each row and put the value of that in the last column called Total. Can this be done by a normal query?
Example:
Pieces | Price | Total
6 | 4 | null // should be 24
2 | 10 | null // should be 10
I'm assuming this should work. This will actually put it in the column in your database
If you want to retrieve the 2 values from the database and put your multiplication in the third column of the result only, then
will be your friend
You can do it with:
Use this:
this was my solution:
i was looking for how to display the result not to calculate...
so. in this case. there is no column TOTAL in the database, but there is a total on the webpage...
also this was needed first...