-
Notifications
You must be signed in to change notification settings - Fork 0
/
StationsSeedData.sql
127 lines (113 loc) · 2.66 KB
/
StationsSeedData.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
USE [StationsDb]
GO
INSERT INTO [dbo].[Difficulties]
([Id]
,[Name])
VALUES
(NEWID()
,'SLOW')
GO
INSERT INTO [dbo].[Difficulties]
([Id]
,[Name])
VALUES
(NEWID()
,'MEDIOCRE')
GO
INSERT INTO [dbo].[Difficulties]
([Id]
,[Name])
VALUES
(NEWID()
,'FAST')
GO
INSERT INTO [dbo].[Difficulties]
([Id]
,[Name])
VALUES
(NEWID()
,'HYPER')
GO
INSERT INTO [dbo].[Regions]
([Id]
,[GeoCode]
,[Name]
,[RegionImageUrl])
VALUES
(NEWID()
,'37.79912187714303, -92.13184784957491'
,'UsFlwCtr52'
,'/image.png')
GO
INSERT INTO [dbo].[Regions]
([Id]
,[GeoCode]
,[Name]
,[RegionImageUrl])
VALUES
(NEWID()
,'38.62545865404169, -90.21384433248116'
,'UsStlArch03'
,'/image.png')
GO
INSERT INTO [dbo].[Regions]
([Id]
,[GeoCode]
,[Name]
,[RegionImageUrl])
VALUES
(NEWID()
,'37.66056344742115, -92.16214891650522'
,'UsFlwRange24'
,'/image.png')
GO
INSERT INTO [dbo].[Regions]
([Id]
,[GeoCode]
,[Name]
,[RegionImageUrl])
VALUES
(NEWID()
,'38.54263580456969, -89.85470434398275'
,'UsSafbRange119'
,'/image.png')
GO
INSERT INTO [dbo].[PathRouters]
([Id]
,[Name]
,[Description]
,[LengthInKm]
,[StationImageUrl]
,[DifficultyId]
,[RegionId])
VALUES
(NEWID()
,'UsSafbRange119_Alpha'
,'Air Base'
,500.26
,'/image.png'
,'8348F8A9-9CE5-433D-84F5-26559ACD9A83'
,'A803098C-2297-4E2B-924B-53AE6748FD8D')
GO
INSERT INTO [dbo].[PathRouters]
([Id]
,[Name]
,[Description]
,[LengthInKm]
,[StationImageUrl]
,[DifficultyId]
,[RegionId])
VALUES
(NEWID()
,'UsFlwRange24'
,'Air Base'
,1500.26
,'/image.png'
,'8348F8A9-9CE5-433D-84F5-26559ACD9A83'
,'97AA96D5-A0D1-4479-B584-D8D42D7CD3CF')
GO
SELECT PathRouters.Name, PathRouters.Description, PathRouters.LengthInKm, Difficulties.Name AS Expr1, Regions.Name AS Expr2, Regions.GeoCode
FROM Difficulties
INNER JOIN PathRouters ON Difficulties.Id = PathRouters.DifficultyId
INNER JOIN Regions ON PathRouters.RegionId = Regions.Id
GO