Changes between Initial Version and Version 1 of BrowseProducts


Ignore:
Timestamp:
12/30/25 16:06:08 (14 hours ago)
Author:
235018
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BrowseProducts

    v1 v1  
     1== Browse Products and Categories
     2
     3==== Actors: **Guest User / Registered User**
     4
     5**1.** The user opens the product catalog.
     6
     7**2.** The system retrieves product data from the database.
     8{{{#!sql
     9SELECT product.code, product.price, product.description, category.name AS category, store.name AS store FROM product
     10JOIN category ON product.category_id = category.id
     11JOIN store ON product.store_id = store.store_ID;
     12
     13}}}
     14
     15**3.** If the user is interested in a product, the system can provide more data about it.
     16
     17{{{#!sql
     18SELECT product.code, product.price, product.description, category.name AS category, store.name AS store, image.image AS product_image, color.color AS product_color FROM product
     19JOIN category ON product.category_id = category.id
     20JOIN store ON product.store_id = store.store_ID
     21JOIN image ON product.code = image.product_code
     22JOIN color ON product.code = color.product_code
     23WHERE product.code='00100001';
     24
     25}}}