-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the name of Jore3 route direction as the source instead of route. Resolves HSLdevcom/jore4#1604
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
SELECT | ||
r.network_route_name AS name, | ||
r.network_route_number AS route_number, | ||
r.network_route_hidden_variant AS hidden_variant, | ||
rd.network_route_direction_id AS direction_id, | ||
rd.network_route_direction_type AS direction_type, | ||
rd.network_route_direction_name AS name, | ||
l.network_line_jore4_id AS line_jore4_id, | ||
rd.network_route_direction_valid_date_range AS valid_date_range, | ||
r.network_route_legacy_hsl_municipality_code AS legacy_hsl_municipality_code | ||
FROM network.network_routes r | ||
JOIN network.network_route_directions rd ON (rd.network_route_id = r.network_route_id) | ||
JOIN network.network_lines l ON (l.network_line_id = r.network_line_id) | ||
WHERE isempty(rd.network_route_direction_valid_date_range * '[2021-01-01, 2050-01-01)'::daterange) = false | ||
JOIN network.network_route_directions rd USING (network_route_id) | ||
JOIN network.network_lines l USING (network_line_id) | ||
WHERE NOT isempty(rd.network_route_direction_valid_date_range * '[2021-01-01, 2050-01-01)'::daterange) | ||
ORDER BY rd.network_route_direction_valid_date_range DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters