Hello,
Typically, I have a really simple cart with some items in it, with a quantity.
I wish to do something like this :
SELECT SUM(price * quantity) as total FROM products WHERE product_id IN (1,2,3,4);
But how can I bind the quantity with the product_id since quantity is not in the database ?
Is there any other way to do this with a low SQL cost ?