Changes between Version 7 and Version 8 of AdvancedReports


Ignore:
Timestamp:
02/03/24 21:59:48 (8 months ago)
Author:
201171
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v7 v8  
    33=== Извештај за сите продукти како и нивното име кои се доставени во последните 3 месеци
    44{{{
    5 select 
    6 count(order_table.order_id),
    7 product.product_name
     5select
     6    count(order_table.order_id),
     7    product.product_name
    88from order_table
    9 left join order_table_contains_product on order_table_contains_product.order_id = order_table.order_id
    10 left join product on product.product_id  = order_table_contains_product.product_id
     9    left join order_table_contains_product on order_table_contains_product.order_id = order_table.order_id
     10    left join product on product.product_id  = order_table_contains_product.product_id
    1111where order_table.order_status = 'Delivered'
    12 and order_table.order_date between  now() - interval '3 months' and now()
     12    and order_table.order_date between  now() - interval '3 months' and now()
    1313group by product.product_name
    1414}}}