Changes between Version 4 and Version 5 of UseCase007
- Timestamp:
- 06/02/26 21:56:53 (9 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase007
v4 v5 56 56 {{{#!div style="margin-left: 20px;" 57 57 {{{ 58 INSERT INTO ORDER_ ITEMS (order_id, product_id, quantity, price_at_purchase)58 INSERT INTO ORDER_PRODUCTS (order_id, product_id, quantity, price_at_purchase) 59 59 VALUES (:active_order_id, :selected_product_id, :requested_quantity, :current_price) 60 60 ON CONFLICT (order_id, product_id) … … 68 68 {{{ 69 69 SELECT COALESCE(SUM(quantity * price_at_purchase), 0) AS new_total 70 FROM ORDER_ ITEMS70 FROM ORDER_PRODUCTS 71 71 WHERE order_id = :active_order_id; 72 72 }}}
