File: aadb_dump.sql

package info (click to toggle)
netbeans 8.1%2Bdfsg3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816,472 kB
  • ctags: 847,258
  • sloc: java: 5,564,229; xml: 634,273; cpp: 25,695; ansic: 20,104; jsp: 12,621; sh: 10,354; php: 4,204; makefile: 1,456; fortran: 1,200; sql: 1,192; objc: 288; perl: 277; haskell: 120; yacc: 30; awk: 17; lex: 11; asm: 4
file content (175 lines) | stat: -rw-r--r-- 3,775 bytes parent folder | download | duplicates (5)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
-- phpMyAdmin SQL Dump
-- version 2.11.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 12, 2008 at 11:42 PM
-- Server version: 5.0.45
-- PHP Version: 5.2.4

--First you need to create a DB by name AirAlliance.

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `AirAlliance`
--

-- --------------------------------------------------------

--
-- Table structure for table `Flights`
--

CREATE TABLE IF NOT EXISTS `Flights` (
  `FID` int(11) NOT NULL,
  `FName` varchar(10) NOT NULL,
  `SourceSID` int(11) NOT NULL,
  `DestSID` int(11) NOT NULL,
  PRIMARY KEY  (`FID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `Flights`
--

INSERT INTO `Flights` (`FID`, `FName`, `SourceSID`, `DestSID`) VALUES
('1', 'AA056', 1, '3'),
('2', 'AA032', 5, '6'),
('3', 'AA087', 20, '4'),
('4', 'AA003', 19, '17'),
('5', 'AA004', 10, '13'),
('6', 'AA045', 2, '5'),
('7', 'AA033', 8, '11'),
('8', 'AA089', 12, '9'),
('9', 'AA099', 7, '16'),
('10', 'AA098', 15, '14');

-- --------------------------------------------------------

--
-- Table structure for table `Guest`
--

CREATE TABLE IF NOT EXISTS `Guest` (
  `GID` int(10) NOT NULL auto_increment,
  `FirstName` varchar(20) NOT NULL,
  `LastName` varchar(20) NOT NULL,
  PRIMARY KEY  (`GID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `Guest`
--

INSERT INTO `Guest` (`GID`, `FirstName`, `LastName`) VALUES
('1', 'Frank', 'Jennings'),
('2', 'Florence', 'Justina'),
('3', 'Randy', 'Pauch'),
('4', 'Dorris', 'Lessing'),
('5', 'Orhan', 'Pamuk'),
('6', 'Harold', 'Pinter'),
('7', 'Toni', 'Morrison'),
('8', 'Dario', 'Fo'),
('9', 'Ivan', 'Bunin'),
('10', 'Henri', 'Bergson');

-- --------------------------------------------------------

--
-- Table structure for table `Itinerary`
--

CREATE TABLE IF NOT EXISTS `Itinerary` (
  `IID` int(11) NOT NULL auto_increment,
  `GID` int(11) NOT NULL,
  `FID` int(11) NOT NULL,
  `SID` int(11) NOT NULL,
  PRIMARY KEY  (`IID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `Itinerary`
--

INSERT INTO `Itinerary` (`IID`, `GID`, `FID`, `SID`) VALUES
(1, 4, 6, '5'),
(2, 1, 10, '9'),
(3, 6, 1, '1'),
(4, 9, 8, '7'),
(5, 3, 3, '3'),
(6, 2, 4, '8'),
(7, 7, 7, '4'),
(8, 5, 9, '6'),
(9, 10, 5, '2'),
(10, 8, 2, '10');

-- --------------------------------------------------------

--
-- Table structure for table `Schedule`
--

CREATE TABLE IF NOT EXISTS `Schedule` (
  `SID` int(11) NOT NULL auto_increment,
  `GID` int(11) NOT NULL,
  `FID` int(11) NOT NULL,
  `Date` date NOT NULL,
  PRIMARY KEY  (`SID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `Schedule`
--

INSERT INTO `Schedule` (`SID`, `GID`, `FID`, `Date`) VALUES
(1, 4, '4', '2008-11-01'),
(2, 6, '1', '2008-11-04'),
(3, 2, '10', '2008-10-04'),
(4, 3, '9', '2008-10-21'),
(5, 5, '8', '2008-10-20'),
(6, 1, '7', '2008-10-03'),
(7, 8, '6', '2008-10-04'),
(8, 9, '3', '2008-10-07'),
(9, 7, '2', '2008-10-15'),
(10, 10, '5', '2008-10-17');

-- --------------------------------------------------------

--
-- Table structure for table `Sectors`
--

CREATE TABLE IF NOT EXISTS `Sectors` (
  `SID` int(11) NOT NULL auto_increment,
  `Sector` varchar(10) NOT NULL,
  PRIMARY KEY  (`SID`),
  KEY `Sector` (`Sector`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `Sectors`
--

INSERT INTO `Sectors` (`SID`, `Sector`) VALUES
('1', 'BLR'),
('2', 'MAS'),
('3', 'BOM'),
('4', 'FRA'),
('5', 'PEK'),
('6', 'SIN'),
('7', 'SCA'),
('8', 'SFO'),
('9', 'CAL'),
('10', 'CHI'),
('11', 'MAL'),
('12', 'SPB'),
('13', 'SYD'),
('14', 'LON'),
('15', 'ANG'),
('16', 'TOK'),
('17', 'JAV'),
('18', 'VIS'),
('19', 'DEL'),
('20', 'CAL');