Changes between Version 13 and Version 14 of Напредни извештаи од базата
- Timestamp:
- 02/12/22 15:23:42 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Напредни извештаи од базата
v13 v14 28 28 select count(d.delivery_id) as cnt ,d.distributor_id, d.delivery_id 29 29 from project.delivery as d 30 where now() - interval'3 months' <= d."date"30 where status='Delivered' AND now() - interval'3 months' <= d."date" 31 31 group by d.delivery_id, d.distributor_id 32 32 )as d on o.distributor_id = d.distributor_id 33 33 group by o.distributor_id 34 order by Br_Dostaveni_Produkti desc; 34 order by Br_Dostaveni_Produkti desc 35 limit 1; 35 36 }}} 36 37