-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopulate_applicant.sql
334 lines (296 loc) · 7.7 KB
/
populate_applicant.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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
-- JOHN LENNON COMPLETE APPLICANT, NEEDS FACULTY REVIWS
INSERT INTO applicant VALUES(
55551111,
'111-11-1111',
'jLennon',
'John',
'Lennon',
'2121 I St NW',
'Washington',
'DC',
'arjunvkr@gmail.com',
'111-111-1111',
'20052',
1
);
INSERT INTO application_info(uid, degree_sought, major, start_year, start_semester, b_degree, b_university, b_gpa, b_date,gre_date, area_of_interest, work_experience, complete) VALUES (
55551111,
"MS",
"CSCI",
"2017",
"Fall",
"CSCI",
"RIT",
3.5,
"2017/05/19",
"2017",
"Cyber Security",
"NSA and Google",
1);
INSERT INTO rec_letters(uid, rec_fname, rec_lname, rec_email, rec_title, rec_affiliation, reccomendation, complete) VALUES (
55551111,
"Kevin",
"ODonnel",
"kev@odonnel.com",
"Professor",
"Calculus Teacher",
"Hard worker and great student",
1
);
INSERT INTO subject_score VALUES (55551111,"GRE Total",339);
INSERT INTO subject_score VALUES (55551111,"GRE Verbal",169);
INSERT INTO subject_score VALUES (55551111,"GRE Quantitative",170);
INSERT INTO transcript VALUES (55551111,1,NULL);
INSERT INTO application_status (uid,ready_for_evaluation,admission_status,decision, date_completed, avg_rank, num_evaluations) VALUES (
55551111,
"yes",
"Application Recieved and Decision Pending",
NULL,
"2019/05/07",
NULL,
0
);
-- RINGO STAR INCOMPLETE APPLICANT(MISSING LETTERS)
INSERT INTO applicant VALUES(
66661111, -- uid
'222-11-1111', -- ssn
'ringostar', -- username
'Ringo',
'Star',
'2121 I St NW',
'Washington',
'DC',
'arjunvkr@gmail.com',
'111-111-1111',
'20052',
true
);
INSERT INTO application_info(uid, degree_sought, major, start_year, start_semester, b_degree, b_university, b_gpa, b_date,gre_date, area_of_interest, work_experience, complete) VALUES (
66661111,
"MS",
"CSCI",
"2017",
"Fall",
"CSCI",
"RIT",
3.5,
"2016/05/19",
"2016",
"Cyber Security",
"NSA and Google",
true
);
INSERT INTO subject_score VALUES (66661111,"GRE Total",339);
INSERT INTO subject_score VALUES (66661111,"GRE Verbal",169);
INSERT INTO subject_score VALUES (66661111,"GRE Quantitative",170);
INSERT INTO transcript VALUES (66661111,1,NULL);
INSERT INTO application_status (uid,ready_for_evaluation,admission_status,num_evaluations) VALUES (
66661111,
"no",
"Application Materials Missing. Please View Above",
0
);
-- LOUIS ARMSTRONG APPLIED AND WAS REJECTED
INSERT INTO applicant VALUES(
00001234, -- uid
'555-11-1111', -- ssn
'lArmstrong', -- username
'Louis',
'Armstrong',
'2121 I St NW',
'Washington',
'DC',
'arjunvkr@gmail.com',
'111-111-1111',
'20052',
true
);
INSERT INTO application_info(uid, degree_sought, major, start_year, start_semester, b_degree, b_university, b_gpa, b_date,gre_date, area_of_interest, work_experience, complete) VALUES (
00001234,
"MS",
"CSCI",
"2017",
"Fall",
"CSCI",
"RIT",
3.0,
"2013/05/19",
"2017",
"Cyber Security",
"Apple",
true
);
INSERT INTO rec_letters (uid,rec_fname,rec_lname,rec_email,rec_title,rec_affiliation,reccomendation,rating,generic,credible,complete)
VALUES (00001234,"Kevin","ODonnel","kev@odonnel.com","Professor","Calculus Teacher","This kid loves math for some reason but he's a hard worker.",2,"Yes","No",true);
INSERT INTO subject_score VALUES (00001234,"GRE Total",339);
INSERT INTO subject_score VALUES (00001234,"GRE Verbal",169);
INSERT INTO subject_score VALUES (00001234,"GRE Quantitative",170);
INSERT INTO transcript VALUES (00001234,1, NULL);
INSERT INTO faculty_evaluation VALUES (
00001234,
10101010,
"Medicore",
2,
"narahari",
"rejected"
);
INSERT INTO application_status (uid,ready_for_evaluation,admission_status,decision,date_completed,avg_rank,num_evaluations) VALUES (
00001234,
"yes",
"Reject",
"Admit",
"2019/05/07",
2,
1
);
-- ARETHA FRANKLIN APPLIED AND DID NOT ACCEPT
INSERT INTO applicant VALUES(
00001235, -- uid
'666-11-1111', -- ssn
'afranklin', -- username
'Aretha',
'Franklin',
'2121 I St NW',
'Washington',
'DC',
'arjunvkr@gmail.com',
'111-111-1111',
'20052',
true
);
INSERT INTO application_info(uid, degree_sought, major, start_year, start_semester, b_degree, b_university, b_gpa, b_date,gre_date, area_of_interest, work_experience, complete) VALUES (
00001235,
"MS",
"CSCI",
"2017",
"Fall",
"CSCI",
"RIT",
3.5,
"2013/05/19",
"2017",
"Cyber Security",
"NSA and Google",
true
);
INSERT INTO subject_score VALUES (00001235,"GRE Total",339);
INSERT INTO subject_score VALUES (00001235,"GRE Verbal",169);
INSERT INTO subject_score VALUES (00001235,"GRE Quantitative",170);
INSERT INTO transcript VALUES (00001235,1, NULL);
INSERT INTO rec_letters(uid,rec_fname,rec_lname,rec_email,rec_title,rec_affiliation,reccomendation,rating,generic,credible,complete) VALUES (00001235,"Kevin","ODonnel","kev@odonnel.com","Professor","Calculus Teacher","This kid loves math",3,"No","yes",true);
INSERT INTO faculty_evaluation VALUES (
00001235,
10101010,
"Brilliant",
3,
"narahari",
"admitted"
);
INSERT INTO application_status (uid,ready_for_evaluation,admission_status,decision,date_completed,avg_rank,num_evaluations) VALUES (
00001235,
"yes",
"Admit",
"Admit",
"2019/05/07",
3,
1
);
-- CARLOS SANTANA APPLIED AND DID NOT ACCEPT
INSERT INTO applicant VALUES(
00001236, -- uid
'777-11-1111', -- ssn
'cSantana', -- username
'Carlos',
'Santana',
'2121 I St NW',
'Washington',
'DC',
'arjunvkr@gmail.com',
'111-111-1111',
'20052',
true
);
INSERT INTO application_info(uid, degree_sought, major, start_year, start_semester, b_degree, b_university, b_gpa, b_date,gre_date, area_of_interest, work_experience, complete) VALUES (
00001236,
"PhD",
"CSCI",
"2017",
"Fall",
"CSCI",
"RIT",
3.5,
"2013/05/19",
"2013",
"Cyber Security",
"NSA and Google",
true
);
INSERT INTO subject_score VALUES (00001236,"GRE Total",339);
INSERT INTO subject_score VALUES (00001236,"GRE Verbal",169);
INSERT INTO subject_score VALUES (00001236,"GRE Quantitative",170);
INSERT INTO transcript VALUES (00001236,1,NULL);
INSERT INTO faculty_evaluation VALUES (
00001236,
10101010,
"Brilliant",
4,
"narahari",
"admitted"
);
INSERT INTO application_status (uid,ready_for_evaluation,admission_status,decision,date_completed,avg_rank,num_evaluations) VALUES (
00001236,
"yes",
"Admit",
"Admit",
"2019/05/07",
4,
1
);
INSERT INTO faculty (fid,uname,fname,lname,department) VALUES (10101010, "bnarahari","Bhagirath","Narahari","CSCI");
INSERT INTO faculty (fid,uname,fname,lname,department) VALUES (12121212, "hchoi","Choi", "Hyeong-Ah","CSCI");
INSERT INTO faculty (fid,uname,fname,lname,department) VALUES (14141414,"twood","Wood","Tim","CSCI");
INSERT INTO user VALUES (
14141414,
'twood',
'password123',
'Tim',
'Wood',
'2121 I St NW',
'Washington',
'DC',
20052,
0,
0,
0,
0,
NULL,
0,
NULL, NULL,
'twood@gmail.com'
);
INSERT INTO role VALUES (
14141414, 'faculty'
);
INSERT INTO faculty (fid,uname,fname,lname,department) VALUES (15151515,"rheller","Rachelle","Heller","CSCI");
INSERT INTO user VALUES (
15151515,
'rheller',
'password123',
'Rachelle',
'Heller',
'2121 I St NW',
'Washington',
'DC',
20052,
0,
0,
0,
0,
NULL,
0,
NULL, NULL,
'rheller@gmail.com'
);
INSERT INTO role VALUES (
15151515, 'faculty'
);