Changes between Version 3 and Version 4 of SearchRoutesUseCase


Ignore:
Timestamp:
01/12/25 21:45:05 (3 days ago)
Author:
222077
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SearchRoutesUseCase

    v3 v4  
    1111    1.2. If no routes match the search criteria, the user is notified accordingly.
    1212
     13
     14 The user clicks on the ‘Search’ button
    1315{{{#!sql
    14 SELECT r.route_id, l1.name AS from_location, l2.name AS to_location, tr.company_name AS organizer_name
     16SELECT r.route_id,
     17       l1.name AS from_location,
     18       l2.name AS to_location,
     19       tr.company_name AS organizer_name
    1520FROM route r
    16          JOIN location l1 ON r.from_location_id = l1.location_id
    17          JOIN location l2 ON r.to_location_id = l2.location_id
    18          JOIN transport_organizer tr ON r.transport_organizer_id = tr.transport_organizer_id
     21JOIN location l1 ON r.from_location_id = l1.location_id
     22JOIN location l2 ON r.to_location_id = l2.location_id
     23JOIN transport_organizer tr ON r.transport_organizer_id = tr.transport_organizer_id
    1924WHERE l1.name ILIKE '%from_location%'
    2025  AND l2.name ILIKE '%to_location%'