fix(db): switch de_he to de_hh
This commit is contained in:
parent
e970038606
commit
2844b401f5
|
@ -122,12 +122,16 @@ CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_bw_part_dhid AS SELECT * FR
|
|||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_bw_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_bw_part_dhid;
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_by_part_dhid AS SELECT * FROM (SELECT count(stop_id) AS count_id, count(stop_id) filter (WHERE stop_id NOT LIKE '%:%:%') AS count_no_dhid, count(stop_id) filter (WHERE stop_id LIKE '%:%:%') AS count_dhid, stop_name FROM :schema.tbl_gtfs_stops_de_by GROUP BY stop_name ORDER BY count_id) AS foo WHERE count_id != count_dhid AND count_id != count_no_dhid;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_by_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_by_part_dhid;
|
||||
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_hb_part_dhid AS SELECT * FROM (SELECT count(stop_id) AS count_id, count(stop_id) filter (WHERE stop_id NOT LIKE '%:%:%') AS count_no_dhid, count(stop_id) filter (WHERE stop_id LIKE '%:%:%') AS count_dhid, stop_name FROM :schema.tbl_gtfs_stops_de_hb GROUP BY stop_name ORDER BY count_id) AS foo WHERE count_id != count_dhid AND count_id != count_no_dhid;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_hb_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_hb_part_dhid;
|
||||
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_he_part_dhid AS SELECT * FROM (SELECT count(stop_id) AS count_id, count(stop_id) filter (WHERE stop_id NOT LIKE '%:%:%') AS count_no_dhid, count(stop_id) filter (WHERE stop_id LIKE '%:%:%') AS count_dhid, stop_name FROM :schema.tbl_gtfs_stops_de_he GROUP BY stop_name ORDER BY count_id) AS foo WHERE count_id != count_dhid AND count_id != count_no_dhid;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_hh_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_hh_part_dhid;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_he_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_he_part_dhid;
|
||||
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_hh_part_dhid AS SELECT * FROM (SELECT count(stop_id) AS count_id, count(stop_id) filter (WHERE stop_id NOT LIKE '%:%:%') AS count_no_dhid, count(stop_id) filter (WHERE stop_id LIKE '%:%:%') AS count_dhid, stop_name FROM :schema.tbl_gtfs_stops_de_hh GROUP BY stop_name ORDER BY count_id) AS foo WHERE count_id != count_dhid AND count_id != count_no_dhid;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_hh_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_hh_part_dhid;
|
||||
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_mv_part_dhid AS SELECT * FROM (SELECT count(stop_id) AS count_id, count(stop_id) filter (WHERE stop_id NOT LIKE '%:%:%') AS count_no_dhid, count(stop_id) filter (WHERE stop_id LIKE '%:%:%') AS count_dhid, stop_name FROM :schema.tbl_gtfs_stops_de_mv GROUP BY stop_name ORDER BY count_id) AS foo WHERE count_id != count_dhid AND count_id != count_no_dhid;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stop_names_de_mv_part_dhid AS SELECT * FROM :schema.vw_gtfs_stop_names_de_mv_part_dhid;
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stop_names_de_ni_part_dhid AS SELECT * FROM (SELECT count(stop_id) AS count_id, count(stop_id) filter (WHERE stop_id NOT LIKE '%:%:%') AS count_no_dhid, count(stop_id) filter (WHERE stop_id LIKE '%:%:%') AS count_dhid, stop_name FROM :schema.tbl_gtfs_stops_de_ni GROUP BY stop_name ORDER BY count_id) AS foo WHERE count_id != count_dhid AND count_id != count_no_dhid;
|
||||
|
|
Loading…
Reference in New Issue