Changes between Version 28 and Version 29 of AdvancedReports
- Timestamp:
- 01/11/23 02:03:14 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v28 v29 206 206 from shelter s 207 207 join 208 209 208 ( 209 select 210 210 e.id_user, 211 211 e.id_shelter, 212 212 count(distinct q1.id_user) as verified_adopters, 213 213 sum(q1.number_of_adoptions) as number_of_adoptions_under_employee 214 214 from 215 215 ( 216 216 select … … 222 222 group by a.id_user 223 223 ) q1 224 225 226 227 224 join employee e on e.id_user = q1.verified_by_employee 225 group by e.id_user 226 order by e.id_user asc 227 ) q2 on s.id_shelter = q2.id_shelter 228 228 join ( 229 229 select … … 233 233 join employee e2 on e2.id_shelter = s.id_shelter 234 234 group by s.id_shelter 235 235 ) q3 on q3.id_shelter = s.id_shelter 236 236 group by s.id_shelter, q2.id_shelter, q3.number_of_employees,q2.verified_adopters, q2.number_of_adoptions_under_employee 237 237 order by s.id_shelter