AdvancedApplicationDesign: V1.2__additional_data.sql

File V1.2__additional_data.sql, 11.9 KB (added by 216049, 3 months ago)
Line 
1-- Insert stops from Skopje to Ohrid
2INSERT INTO Postojka (lat, lon, ime, opis) VALUES
3 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia'),
4 (41.8770, 21.0720, 'Tetovo', 'City in western North Macedonia'),
5 (41.7150, 20.9620, 'Gostivar', 'City in western North Macedonia'),
6 (41.5886, 20.6305, 'Kicevo', 'City in western North Macedonia'),
7 (41.5120, 20.2690, 'Struga', 'City in southwestern North Macedonia'),
8 (41.1136, 20.8016, 'Ohrid', 'City in southwestern North Macedonia');
9-- Insert stops for Line 2 (Skopje - Ohrid)
10INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
11 (2, 25, 1, 3), -- Skopje
12 (2, 26, 2, 3), -- Tetovo
13 (2, 27, 3, 3), -- Gostivar
14 (2, 28, 4, 3), -- Kicevo
15 (2, 29, 5, 3), -- Struga
16 (2, 30, 6, 3); -- Ohrid
17
18-- Insert stops from Ohrid to Skopje
19INSERT INTO Postojka (lat, lon, ime, opis) VALUES
20 (41.1136, 20.8016, 'Ohrid', 'City in southwestern North Macedonia'),
21 (41.5910, 20.6520, 'Debarca', 'Municipality near Ohrid'),
22 (41.6340, 20.8940, 'Makedonski Brod', 'Town in central North Macedonia'),
23 (41.6980, 21.1290, 'Samokov', 'Village in western North Macedonia'),
24 (41.7820, 21.3340, 'Tetovo', 'City in western North Macedonia'),
25 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia');
26-- Insert stops for Line 2 (Ohrid - Skopje)
27INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
28 (2, 31, 1, 4), -- Ohrid
29 (2, 32, 2, 4), -- Debarca
30 (2, 33, 3, 4), -- Makedonski Brod
31 (2, 34, 4, 4), -- Samokov
32 (2, 35, 5, 4), -- Tetovo
33 (2, 36, 6, 4); -- Skopje
34-- Insert stops from Skopje to Bitola
35INSERT INTO Postojka (lat, lon, ime, opis) VALUES
36 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia'), -- id 37
37 (41.9202, 21.5511, 'Veles', 'City in central North Macedonia'), -- id 38
38 (41.7361, 21.7744, 'Prilep', 'City in southern North Macedonia'), -- id 39
39 (41.6130, 21.5523, 'Krushevo', 'Town in southern North Macedonia'), -- id 40
40 (41.4442, 21.2761, 'Bitola', 'City in southwestern North Macedonia'); -- id 41
41-- Insert stops for Line 3 (Skopje - Bitola)
42INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
43 (3, 37, 1, 5), -- Skopje
44 (3, 38, 2, 5), -- Veles
45 (3, 39, 3, 5), -- Prilep
46 (3, 40, 4, 5), -- Krushevo
47 (3, 41, 5, 5); -- Bitola
48-- Insert stops from Bitola to Skopje
49INSERT INTO Postojka (lat, lon, ime, opis) VALUES
50 (41.4442, 21.2761, 'Bitola', 'City in southwestern North Macedonia'), -- id 42
51 (41.6130, 21.5523, 'Krushevo', 'Town in southern North Macedonia'), -- id 43
52 (41.7361, 21.7744, 'Prilep', 'City in southern North Macedonia'), -- id 44
53 (41.9202, 21.5511, 'Veles', 'City in central North Macedonia'), -- id 45
54 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia'); -- id 46
55-- Insert stops for Line 3 (Bitola - Skopje)
56INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
57 (3, 42, 1, 6), -- Bitola
58 (3, 43, 2, 6), -- Krushevo
59 (3, 44, 3, 6), -- Prilep
60 (3, 45, 4, 6), -- Veles
61 (3, 46, 5, 6); -- Skopje
62
63-- Insert stops from Skopje to Kumanovo
64INSERT INTO Postojka (lat, lon, ime, opis) VALUES
65 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia'), -- id 47
66 (41.9945, 21.5770, 'Butel', 'Municipality in Skopje'), -- id 48
67 (42.0153, 21.7000, 'Aracinovo', 'Village near Skopje'), -- id 49
68 (42.0892, 21.7184, 'Lipkovo', 'Village in northeastern North Macedonia'), -- id 50
69 (42.1322, 21.7144, 'Kumanovo', 'City in northeastern North Macedonia'); -- id 51
70
71-- Insert stops for Line 4 (Skopje - Kumanovo)
72INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
73 (4, 47, 1, 7), -- Skopje
74 (4, 48, 2, 7), -- Butel
75 (4, 49, 3, 7), -- Aracinovo
76 (4, 50, 4, 7), -- Lipkovo
77 (4, 51, 5, 7); -- Kumanovo
78-- Insert stops from Kumanovo to Skopje
79INSERT INTO Postojka (lat, lon, ime, opis) VALUES
80 (42.1322, 21.7144, 'Kumanovo', 'City in northeastern North Macedonia'), -- id 52
81 (42.0892, 21.7184, 'Lipkovo', 'Village in northeastern North Macedonia'), -- id 53
82 (42.0153, 21.7000, 'Aracinovo', 'Village near Skopje'), -- id 54
83 (41.9945, 21.5770, 'Butel', 'Municipality in Skopje'), -- id 55
84 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia'); -- id 56
85-- Insert stops for Line 4 (Kumanovo - Skopje)
86INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
87 (4, 52, 1, 8), -- Kumanovo
88 (4, 53, 2, 8), -- Lipkovo
89 (4, 54, 3, 8), -- Aracinovo
90 (4, 55, 4, 8), -- Butel
91 (4, 56, 5, 8); -- Skopje
92-- Insert stops from Skopje to Strumica
93INSERT INTO Postojka (lat, lon, ime, opis) VALUES
94 (41.9981, 21.4254, 'Skopje', 'Capital city of North Macedonia'), -- id 57
95 (41.8833, 21.5065, 'Katlanovo', 'Village near Skopje'), -- id 58
96 (41.7466, 21.3600, 'Veles Rest Area', 'Rest area near Veles'), -- id 59
97 (41.6165, 22.1796, 'Demir Kapija', 'Town in central North Macedonia'), -- id 60
98 (41.3472, 22.5533, 'Radovish', 'Town in southeastern North Macedonia'), -- id 61
99 (41.4378, 22.6431, 'Strumica', 'City in southeastern North Macedonia'); -- id 62
100-- Insert stops for Line 5 (Skopje - Strumica)
101INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
102 (5, 57, 1, 9), -- Skopje
103 (5, 58, 2, 9), -- Katlanovo
104 (5, 59, 3, 9), -- Veles Rest Area
105 (5, 60, 4, 9), -- Demir Kapija
106 (5, 61, 5, 9), -- Radovish
107 (5, 62, 6, 9); -- Strumica
108-- Insert stops from Strumica to Skopje
109INSERT INTO Postojka (lat, lon, ime, opis) VALUES
110 (41.4380, 22.6429, 'Strumica', 'City in southeastern North Macedonia'), -- id 63
111 (41.3480, 22.5525, 'Radovish Park', 'Park in Radovish'), -- id 64
112 (41.6170, 22.1802, 'Demir Kapija South', 'Southern part of Demir Kapija'), -- id 65
113 (41.7470, 21.3610, 'Veles South Rest Area', 'Rest area south of Veles'), -- id 66
114 (41.8840, 21.5070, 'Katlanovo East', 'Eastern part of Katlanovo'), -- id 67
115 (41.9985, 21.4260, 'Skopje Center', 'Center of Skopje'); -- id 68
116-- Insert stops for Line 5 (Strumica - Skopje)
117INSERT INTO Postojka_Na_Linija (linija_id, postojka_id, reden_broj, pravec_id) VALUES
118 (5, 63, 1, 10), -- Strumica
119 (5, 64, 2, 10), -- Radovish Park
120 (5, 65, 3, 10), -- Demir Kapija South
121 (5, 66, 4, 10), -- Veles South Rest Area
122 (5, 67, 5, 10), -- Katlanovo East
123 (5, 68, 6, 10); -- Skopje Center
124