Changes between Version 1 and Version 2 of UseCase009
- Timestamp:
- 05/13/26 15:01:25 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase009
v1 v2 11 11 {{{#!div style="text-align: justify; width: 100%;" 12 12 13 1. Admin selects an existing {{{Product}}}from the inventory management interface that requires an update.13 1. Admin selects an existing Product from the inventory management interface that requires an update. 14 14 15 2. System retrieves the current data for the {{{Product}}}, including {{{price}}}, {{{stock}}}, {{{description}}}, and {{{format}}}. 15 2. System retrieves the current data for the Product, including price, stock, description, and format. 16 17 {{{#!div style="margin-left: 20px;" 18 {{{ 19 SELECT product_id, format, price, stock, description, release_id 20 FROM Product 21 WHERE product_id = @selected_product_id; 22 }}} 23 }}} 16 24 17 25 3. Admin enters the new values for the attributes that need to be modified. … … 19 27 4. System validates the updated information to ensure it adheres to the required data formats (e.g., non-negative values for price and stock). 20 28 21 5. System updates the corresponding record in the {{{Product}}} table with the new data. 29 5. System updates the corresponding record in the Product table with the new data. 30 31 {{{#!div style="margin-left: 20px;" 32 {{{ 33 UPDATE Product 34 SET 35 price = @new_price, 36 stock = @new_stock, 37 description = @new_description, 38 format = @new_format 39 WHERE product_id = @selected_product_id; 40 }}} 41 }}} 22 42 23 43 6. System confirms the successful modification to the admin and updates the product information across the public catalog immediately. 44 45 {{{#!div style="margin-left: 20px;" 46 {{{ 47 SELECT * 48 FROM Product 49 WHERE product_id = @selected_product_id; 24 50 }}} 51 }}} 52 53 }}}
