Changes between Version 15 and Version 16 of AdvancedReports
- Timestamp:
- 07/10/23 18:28:54 (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v15 v16 48 48 * Објавите на газдите и која е разликата меѓу цената објавена и цената потпишана за станот, и колку вкупно имаат заработено во тој договор. 49 49 {{{ 50 select au.ime,au.prezime, p.cityname as city_posted_for,p.price as posted_price, aa.apartment_rent as signed_price, abs(p.price-aa.apartment_rent) as difference, aa.apartment_rent * extract(month from age(aa.date_expires,aa.date_signed)) as total_euros_earned from apartment_agreement as aa50 select au.ime,au.prezime,c.cityname as city_posted_for,p.price as posted_price, aa.apartmentrent as signed_price, abs(p.price-aa.apartmentrent) as difference, aa.apartmentrent * extract(month from age(aa.dateexpires,aa.datesigned)) as total_euros_earned from apartment_agreement as aa 51 51 join apartment_owner ao on ao.ownerid=aa.ownerid 52 52 join appuser au on au.userid = ao.ownerid 53 53 join apartment apt on apt.apartmentid = aa.apartmentid 54 54 join owner_post op on op.ownerid = ao.ownerid 55 join post p on p.postid = op.owner_postid 55 join post p on p.postid = op.ownerpostid 56 join city c on c.cityid = p.cityid 56 57 order by au.ime,difference, total_euros_earned 57 58 }}}