Changes between Version 45 and Version 46 of AdvancedReports
- Timestamp:
- 07/22/24 15:47:42 (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v45 v46 149 149 COUNT(CASE WHEN p.typeOfPetsID = (SELECT ID FROM project.type_of_pets WHERE kind_of_pet = 'Cat') THEN 1 END) AS total_cats, 150 150 AVG(CASE WHEN p.typeOfPetsID = (SELECT ID FROM project.type_of_pets WHERE kind_of_pet = 'Dog') THEN EXTRACT(YEAR FROM age(current_date, p.dateOfBirthday)) END) AS avg_age_dogs, 151 AVG(CASE WHEN p.typeOfPetsID = (SELECT ID FROM pro ekt.type_of_pets WHERE kind_of_pet = 'Cat') THEN EXTRACT(YEAR FROM age(current_date, p.dateOfBirthday)) END) AS avg_age_cats151 AVG(CASE WHEN p.typeOfPetsID = (SELECT ID FROM project.type_of_pets WHERE kind_of_pet = 'Cat') THEN EXTRACT(YEAR FROM age(current_date, p.dateOfBirthday)) END) AS avg_age_cats 152 152 FROM 153 153 project.vet_centers vc