-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry.sql
More file actions
293 lines (248 loc) · 4.8 KB
/
Copy pathtry.sql
File metadata and controls
293 lines (248 loc) · 4.8 KB
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
-- Active: 1670048003557@@127.0.0.1@3306
BEGIN TRANSACTION;
CREATE TABLE
subjects(
year INT NOT NULL,
subject_id TEXT PRIMARY KEY NOT NULL,
subject TEXT NOT NULL,
hours INT NOT NULL,
staff_id TEXT NOT NULL,
LAB INT NOT NULL
);
INSERT INTO subjects
VALUES (
1,
'DP-2',
'Developmental Psychology – II',
5,
'NAC',
0
);
INSERT INTO subjects
VALUES (
1,
'GP-2',
'General Psychology – II',
5,
'RUK',
0
);
INSERT INTO subjects
VALUES (
1,
'PS-1',
'Psychological Statistics - I',
5,
'SRS',
0
);
INSERT INTO subjects VALUES(1,'TAM-1','TAMIL',6,'LANG-1',0);
INSERT INTO subjects VALUES(1,'ENG-1','ENGLISH',6,'LANG-2',0);
INSERT INTO subjects
VALUES (
1,
'EP-1',
'Experimental Psychology: Practical-I ',
3,
'VAO',
1
);
INSERT INTO subjects
VALUES (
2,
'AP-1',
'Abnormal Psychology-I',
5,
'KRT',
0
);
INSERT INTO subjects VALUES(2,'RM','Research Methodology',5,'NAC',0);
INSERT INTO subjects
VALUES (
2,
'LAP',
'Legal Aspects of Psychology',
5,
'SRS',
0
);
INSERT INTO subjects VALUES(2,'TAM-2','TAMIL',5,'LANG-1',0);
INSERT INTO subjects VALUES(2,'LANG-2','ENGLISH',5,'LANG-2',0);
INSERT INTO subjects
VALUES (
2,
'EP-3',
'Experimental Psychology: Practical-III',
3,
'KAN',
1
);
INSERT INTO subjects
VALUES (
2,
'EDC:IS',
'Information Security',
2,
'EDC',
0
);
INSERT INTO subjects
VALUES (
3,
'FMCS',
'Fundamentals of Marketing and Consumer Behavior',
5,
'RUK',
0
);
INSERT INTO subjects
VALUES (
3,
'FC',
'Fundamentals of Counselling',
5,
'ANU',
0
);
INSERT INTO subjects
VALUES (
3,
'FHP',
'Fundamentals of Health Psychology',
5,
'KAA',
0
);
INSERT INTO subjects
VALUES (
3,
'PEC',
'Psychology of Exceptional Children',
5,
'KAN',
0
);
INSERT INTO subjects
VALUES (
3,
'RP',
'Rehabilitation Psychology',
5,
'VAO',
0
);
INSERT INTO subjects
VALUES (
3,
'EP-5',
'Experimental Psychology: Practical – V: Case Analysis',
5,
'KRT',
1
);
INSERT INTO subjects
VALUES (
4,
'OB',
'Organizational Behavior',
5,
'ANU',
0
);
INSERT INTO subjects VALUES(4,'CP','Clinical Psychology',5,'RUK',0);
INSERT INTO subjects
VALUES (
4,
'PTD',
'Psychological Testing & Diagnosis',
5,
'KAA',
0
);
INSERT INTO subjects
VALUES (
4,
'BM',
'Behavior Modification',
5,
'VAO',
0
);
INSERT INTO subjects
VALUES (
4,
'PA',
'Psychological Assessment: Practical II',
5,
'SRS',
1
);
INSERT INTO subjects VALUES(4,'EDC:CS','Cyber Security',5,'EDC',0);
INSERT INTO subjects
VALUES (
5,
'OB-2',
'Organizational Behavior - II',
5,
'NAC',
0
);
INSERT INTO subjects
VALUES (
5,
'MCB',
'Marketing & Consumer Behavior',
5,
'KAN',
0
);
INSERT INTO subjects
VALUES (
5,
'CS',
'Counseling Psychology',
5,
'KRT',
0
);
INSERT INTO subjects VALUES(5,'HP','Health Psychology',4,'ANU',0);
INSERT INTO subjects VALUES(5,'CA','Case Analysis',3,'KAA',1);
INSERT INTO subjects
VALUES (
5,
'EDC:PS',
'Professional Skills',
4,
'EDC',
0
);
INSERT INTO subjects
VALUES (
5,
'EDC:HRM',
'Human Resource Management',
4,
'EDC',
0
);
CREATE TABLE
staffs(
staff_id TEXT PRIMARY KEY NOT NULL,
staff_name TEXT NOT NULL,
subject_id TEXT NOT NULL
);
INSERT INTO staffs VALUES('NAC','Naachimuthu','DP-2|RM|OB-2');
INSERT INTO staffs VALUES('RUK','Rukmani','GP-2|FMCS|CP');
INSERT INTO staffs VALUES('SRS','Saraswathi','LAP|PS-1|LAB:PA');
INSERT INTO staffs VALUES('KAN','Kanchana','PEC|MCB|LAB:EP-3');
INSERT INTO staffs VALUES('KRT','Karthikeyan','AP-1|LAB:EP-5|CS');
INSERT INTO staffs VALUES('ANU','Anu','OB|FC|HP');
INSERT INTO staffs VALUES('VAO','vaodehi','LAB:EP-1|RP|BM');
INSERT INTO staffs VALUES('KAA','Kaalakeyan','FHP|PTD|LAB:CA');
INSERT INTO staffs
VALUES (
'EDC',
'other dpt',
'EDC:IS|EDC:CS|EDC:PS|EDC:HRM'
);
COMMIT;