Changes between Version 13 and Version 14 of AdvancedReports
- Timestamp:
- 07/10/23 18:26:38 (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v13 v14 19 19 * Извештај за сите студенти и сите места каде имаат седено порано (доколку имале седено), кој бил газдата, колку вкупно платиле, и периодот на договорот подредено по име на студент и датум. 20 20 {{{ 21 select au.ime as student_ime,au.prezime as student_prezime, aa.apartment _rent as rent, aa.apartment_rent * extract(month from age(aa.date_expires,aa.date_signed)) as total_paid,22 appu.ime as owner_ime, appu.prezime as owner_prezime, aa.date _signed, aa.date_expires from student s21 select au.ime as student_ime,au.prezime as student_prezime, aa.apartmentrent as rent, aa.apartmentrent * extract(month from age(aa.dateexpires,aa.datesigned)) as total_paid, 22 appu.ime as owner_ime, appu.prezime as owner_prezime, aa.datesigned, aa.dateexpires from student s 23 23 join appuser au on au.userid=s.studentid 24 24 left join student_signs ss on ss.studentid = s.studentid 25 left join apartment_agreement aa on aa.a partment_agreementid=ss.agreementid25 left join apartment_agreement aa on aa.agreementid=ss.agreementid 26 26 join apartment_owner ao on ao.ownerid=aa.ownerid 27 27 join appuser appu on appu.userid = ao.ownerid 28 order by au.ime,aa.date _signed28 order by au.ime,aa.datesigned 29 29 }}} 30 30