-
Notifications
You must be signed in to change notification settings - Fork 2
/
Feedtables.sql
35 lines (27 loc) · 729 Bytes
/
Feedtables.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
DROP TABLE IF exists FEEDBACK_DETAILS;
DROP TABLE IF EXISTS STUDENT_DETAILS;
CREATE TABLE STUDENT_DETAILS(
STUDENT_ID INTEGER PRIMARY KEY,
ACADEMIC_YEAR INTEGER NOT NULL,
SEMESTER INTEGER NOT NULL,
BRANCH VARCHAR(4),
SECTION VARCHAR(5),
COURSE VARCHAR(20)
);
CREATE TABLE FEEDBACK_DETAILS(
FEEDBACK_ID INTEGER AUTO_INCREMENT PRIMARY KEY,
FEEDBACK_DATE DATE,
STUDENT_ID INTEGER,
COURSE VARCHAR(20),
Q1 INTEGER,
Q21 INTEGER,
Q22 INTEGER,
Q23 INTEGER,
Q24 INTEGER,
Q25 INTEGER,
Q3 INTEGER,
Q4 INTEGER,
CONSTRAINT FD_K FOREIGN KEY (STUDENT_ID) REFERENCES STUDENT_DETAILS(STUDENT_ID)
);
select * from student_details;
SELECT * FROM feedback_details;