This repository has been archived on 2022-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
metro/SQL/AddData.sql

118 lines
4.8 KiB
Transact-SQL

USE Metro
GO
INSERT INTO stanciya (kod, name, paspotok, kod_vpered, rast_vpered, kod_nazad, rast_nazad, stat)
VALUES
('1', 'Ïàðê Êóëüòóðû', '49', '2', '1000', NULL, NULL, 1),
('2', 'Êèðîâñêàÿ', '69', '3', '750', '1', '1000', 1),
('3', 'Êîìñîìîëüñêàÿ', '89', '4', '1000', '2', '750', 1),
('4', 'Àâòîçàâîäñêàÿ', '98', '5', '700', '3', '1000', 1),
('5', 'Ïðîëåòàðñêàÿ', '98', '6', '900', '4', '700', 1),
('6', 'Äâèãàòåëü Ðåâîëþöèè', '139', '7', '1100', '5', '900', 1),
('7', 'Çàðå÷íàÿ', '218', '8', '1600', '6', '1100', 1),
('8', 'Ëåíèíñêàÿ', '219', '9', '1550', '7', '1600', 1),
('9', '×êàëîâñêàÿ', '123', '10', '1000', '8', '1550', 1),
('10', 'Ìîñêîâñêàÿ', '84', '11', '3000', '9', '1000', 1),
('11', 'Ãîðüêîâñêàÿ', '47', NULL, NULL, '10', '3000', 1),
('12', 'Áóðåâåñòíèê', '59', '13', '1150', NULL, NULL, 1),
('13', 'Áóðíàêîâñêàÿ', '95', '14', '1150', '12', '1150', 1),
('14', 'Êàíàâèíñêàÿ', '149', '15', '1200', '13', '1150', 1),
('15', 'Ìîñêîâñêàÿ', '200', '16', '2500', '14', '1200', 1),
('16', 'Ñòðåëêà', '117', '17', '2300', '15', '2500', 1),
('17', 'Âîëãà', '68', NULL, NULL, '16', '2300', 1)
GO
INSERT INTO vetka
VALUES
('Êðàñíàÿ', 1, 11, 1, 3, 5),
('Ñèíÿÿ', 12, 17, 2, 4, 6)
GO
INSERT INTO dispetcher
VALUES
(123456, 'Àëåêñàíäð Àêèìîâ', '89102348768', 'Ñòàðøèé Äèñïåò÷åð', HASHBYTES('MD5','123456')),
(748120, 'Åâãåíèé Êóëèê', '89109876543', 'Äèñïåò÷åð', HASHBYTES('MD5','748120')),
(321295, 'Àíàñòàñèÿ Àçèìîâà', '89103219876', 'Äèñïåò÷åð', HASHBYTES('MD5','321295')),
(398123, 'Åâãåíèé Êóëèê', '89158374921', 'Äèñïåò÷åð', HASHBYTES('MD5','398123')),
(129348, 'Þëèÿ Íàãèáèíà', '83927430134', 'Äèñïåò÷åð', HASHBYTES('MD5','129348'))
GO
INSERT INTO typsostav
VALUES
('1', '81-767 «Ìîñêâà»', '330', '160', '2686', '3680', 'Ïàñàæèðñêèé', '1520', '11'),
('2', '81-717', '330', '192', '2670', '3650', 'Ïàñàæèðñêèé', '1520', '13'),
('5', 'E81-717', '330', '192', '2670', '3650', 'Ïàñàæèðñêèé Àâòîóïðàâëÿåìûé', '1520', '13'),
('3', 'CMM-2', '0', '30', '2590', '3690', 'Ñíåãîóáîðî÷íûé', '1520', '7'),
('4', 'RYT-4', '0', '30', '2700', '3700', 'Ïðîìûâêà Òîíåëåé', '1520', '7')
GO
INSERT INTO psostav
VALUES
('1', '1', '1', '20432', '20', '4'),
('2', '1', '1', '12342', '15', '5'),
('3', '1', '1', '20394', '18', '2'),
('4', '1', '1', '13321', '17', '3'),
('5', '1', '1', '12493', '18', '4'),
('6', '1', '1', '12943', '18', '5'),
('7', '1', '1', '18242', '20', '2'),
('8', '1', '1', '28432', '22', '2'),
('9', '1', '1', '21827', '15', '3'),
('10', '1', '1', '18212', '12', '3'),
('11', '2', '1', '9123', '5', '5'),
('12', '2', '1', '8323', '2', '4'),
('13', '2', '1', '10212', '3', '3'),
('14', '2', '1', '7293', '4', '4'),
('15', '2', '2', '3928', '5', 37),
('16', '2', '2', '9432', '9', '4'),
('17', '2', '2', '3023', '12', '2'),
('18', '2', '2', '3943', '2', '4'),
('19', '2', '2', '1293', '7', '5'),
('20', '2', '2', '9432', '8', '6'),
('21', '3', '2', '5034', '10', '3'),
('22', '3', '2', '7054', '15', '4'),
('23', '4', '2', '15033', '20', '5'),
('24', '4', '2', '13495', '22', '2')
GO
INSERT INTO mashinist
VALUES
(340432, '1', 'Ïàâåë Äóðîâ', '89495571599', '7', 'Òðåòüÿ'),
(385312, '2', 'Äìèòðèé Ìåäâåäåâ', '', '4', 'Ïåðâàÿ'),
(586341, '3', 'Ìèõàèë Ãàëóñòÿí', '86128324123', '8', 'Âòîðàÿ'),
(963453, '4', 'Ìàêñ Òàðàñåíêî', '89320432123', '1', 'Ïåðâàÿ'),
(3582395823, '5', 'Åãîð Êðèä', '89102938473', '2', 'Ïåðâàÿ'),
(4599683475, '6', 'Ïàâåë Âîëÿ', '89159432384', '8', 'Âòîðàÿ'),
(2395834523, '7', 'Ìàêñèì Ãîëîïîëîñîâ', '83928438899', '15', 'Òðåòüÿ'),
(2387574234, '8', 'Ðîìàí Ôèëü÷åíêîâ', '', '1', 'Ïåðâàÿ'),
(4958873644, '9', 'Àíäðåé Ðîãîçîâ', '', '3', 'Ïåðâàÿ'),
(4495948242, '10', 'Ðàìçàí Êàäûðîâ', '8394838412', '3', 'Ïåðâàÿ'),
(3988574444, '11', 'Àëåêñåé Äîëìàòîâ', '83743745646', '4', 'Ïåðâàÿ'),
(3384754332, '12', 'Äèìà Áèëàí', '', '9', 'Òðåòüÿ'),
(2340542485, '13', 'Àëåêñàíäð Øåïñ', '83748374212', '5', 'Ïåðâàÿ'),
(3843743244, '14', 'Íèêîëàé Ñîáîëåâ', '89102837463', '8', 'Âòîðàÿ'),
(3847738495, '15', 'Âàñÿ Âàêóëåíêî', '87364521243', '3', 'Ïåðâàÿ'),
(4838475554, '16', 'Âëàäèìèð Æèðèíîâñêèé', '', '25', 'Ïåðâàÿ'),
(2283746372, '17', 'Þðèé Õîâàíñêèé', '', '15', 'Òðåòüÿ'),
(3948577483, '18', 'Ìàêñ Áðàíäò', '', '5', 'Ïåðâàÿ'),
(2398327475, '19', 'Äàíèèë Äîáðîäóøíûé', '89057349394', '4', 'Ïåðâàÿ'),
(4938472384, '20', 'Íèêîëàé Íàóìîâ', '89056743432', '3', 'Ïåðâàÿ'),
(4039857422, '21', 'Àëåêñåé Íàâàëüíûé', '89204930794', '9', 'Âòîðàÿ'),
(9584727343, '22', 'Êîñòÿ Ïàâëîâ', '89208956350', '14', 'Òðåòüÿ'),
(2944723954, '23', 'Ðîìà Ƹëóäü', '89027853099', '25', 'Òðåòüÿ'),
(2563323954, NULL, 'Ñåðãåé Ñîáÿíèí', '89084105484', '34', 'Òðåòüÿ')
GO
INSERT INTO spravka
VALUES
(1, 'Êîëîäêè', '35', 10, 15),
(2, 'Ïðîáåã', '200000', 0, 23),
(3, 'Ìîòîð', '25', 25, 20)
GO
INSERT INTO remont (typik)
VALUES
(1), (2), (3), (4), (5)
GO