Changes between Version 17 and Version 18 of ImportantUseCase0


Ignore:
Timestamp:
02/05/24 16:16:50 (8 months ago)
Author:
201171
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportantUseCase0

    v17 v18  
    1010
    1111[[Image(1-1.jpg)]]
     12
     13Прикажување на категориите
     14{{{
     15select category.category_name from category
     16}}}
     17
     18Прикажување на најпродаваните производи (Hottest products)
     19
     20{{{
     21select product.product_name
     22from order_table
     23left join order_table_contains_product on order_table_contains_product.order_id = order_table.order_id
     24left join product on product.product_id  = order_table_contains_product.product_id
     25where order_table.order_status = 'Delivered'
     26and order_table.order_date between  now() - interval '3 months' and now()
     27}}}
     28
    1229
    1330=== Чекор 2
     
    4057[[Image(4-1.jpg)]]
    4158
    42 Прикажување на категориите
     59Прикажување на категориите и подкатегориите на производот
    4360{{{
    44 select category.category_name from category
     61select category.category_name,
     62subcategory.subcategory_name
     63from category
     64join subcategory on subcategory.category_id = category.category_id
     65where category.category_id = 1
    4566}}}
    4667