Changes between Version 11 and Version 12 of Напредни извештаи од базата
- Timestamp:
- 02/12/22 00:50:01 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Напредни извештаи од базата
v11 v12 34 34 from project.product as p 35 35 join( 36 37 38 36 select ptw.prod_id, count(ptw.prod_id) as cnt 37 from project.product_to_wishlist as ptw 38 group by ptw.prod_id 39 39 ) as pw on p.prod_id = pw.prod_id 40 group by p."name", p.description, pw.cnt 40 join( 41 select u.time_stamp, u.product_id 42 from project.updates as u 43 group by u.product_id, u.time_stamp 44 )as u on u.product_id = p.prod_id 45 where now()-interval'6 months' <= u.time_stamp 46 group by p."name", p.description, pw.cnt, p.prod_id, u.time_stamp 41 47 order by pw.cnt desc 42 48 limit 1;