Changes between Version 13 and Version 14 of Напредни извештаи од базата


Ignore:
Timestamp:
02/12/22 15:23:42 (3 years ago)
Author:
186102
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Напредни извештаи од базата

    v13 v14  
    2828                select count(d.delivery_id) as cnt ,d.distributor_id, d.delivery_id
    2929                from project.delivery as d
    30                 where now() - interval'3 months' <= d."date"
     30                where status='Delivered' AND now() - interval'3 months' <= d."date"
    3131                group by d.delivery_id, d.distributor_id
    3232)as d on o.distributor_id = d.distributor_id
    3333group by o.distributor_id
    34 order by Br_Dostaveni_Produkti desc;
     34order by Br_Dostaveni_Produkti desc
     35limit 1;
    3536}}}
    3637