Changes between Version 11 and Version 12 of AdvancedApplicationDevelopment
- Timestamp:
- 09/25/25 13:28:20 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedApplicationDevelopment
v11 v12 92 92 GROUP BY d.id_destination, d.location_name 93 93 ORDER BY procent_cheap DESC; 94 }}}95 96 {{{97 DB::statement("98 CREATE VIEW view_procent_cheap_destinations AS99 SELECT100 d.imelokacija,101 COUNT(CASE WHEN a.iznos < 500 THEN 1 END) * 100.0 / COUNT(*) AS procent_cheap102 FROM travel_sage.destinacii d103 JOIN travel_sage.aktivnosti a ON d.iddest = a.iddest104 GROUP BY d.iddest, d.imelokacija105 ORDER BY procent_cheap DESC106 ");107 94 }}} 108 95