There is such a database. The table orders (Orders) and products (Products) are connected via the link table OrderProducts.
I make such a request
SELECT Orders.id as NЗаказа, Products.name as НаименованиеПродукта, Products.price as Цена, OrderProducts.quantity as Количество, Products.price * OrderProducts.quantity as Стоимость FROM Orders, OrderProducts, Products WHERE OrderProducts.order_id = Orders.id AND OrderProducts.product_id = Products.id At the exit
How can I write such a request so that the cost of the order would be displayed, while there may be several items in the order?