Changes between Version 11 and Version 12 of AdvancedApplicationDevelopment


Ignore:
Timestamp:
09/25/25 13:28:20 (3 weeks ago)
Author:
223270
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedApplicationDevelopment

    v11 v12  
    9292GROUP BY d.id_destination, d.location_name
    9393ORDER BY procent_cheap DESC;
    94 }}}
    95 
    96 {{{
    97  DB::statement("
    98             CREATE VIEW view_procent_cheap_destinations AS
    99             SELECT
    100                 d.imelokacija,
    101                 COUNT(CASE WHEN a.iznos < 500 THEN 1 END) * 100.0 / COUNT(*) AS procent_cheap
    102             FROM travel_sage.destinacii d
    103             JOIN travel_sage.aktivnosti a ON d.iddest = a.iddest
    104             GROUP BY d.iddest, d.imelokacija
    105             ORDER BY procent_cheap DESC
    106         ");
    10794}}}
    10895