Changes between Version 1 and Version 2 of SearchRoutesUseCase


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

--

Legend:

Unmodified
Added
Removed
Modified
  • SearchRoutesUseCase

    v1 v2  
    1010        * The user may click on a route and view upcoming trips for that route.
    1111    1.2. If no routes match the search criteria, the user is notified accordingly.
     12{{{#!sql
     13SELECT r.route_id, l1.name AS from_location, l2.name AS to_location, tr.company_name AS organizer_name
     14FROM route r
     15         JOIN location l1 ON r.from_location_id = l1.location_id
     16         JOIN location l2 ON r.to_location_id = l2.location_id
     17         JOIN transport_organizer tr ON r.transport_organizer_id = tr.transport_organizer_id
     18WHERE l1.name ILIKE '%from_location%'
     19  AND l2.name ILIKE '%to_location%'
     20}}}