How can I make a query that adds and multiplies two columns?
For example:
id || Price per item || Items purchased
1 || 4------------------- || 3
2 || 3.2---------------- || 7
I need a query to do: 4*3 + 3.2*7 and so on... How can I do so?
Thank you!