bhikas dbms 4
bhikas dbms 4
bhikas dbms 4
Roll no.-2202161630115
EXPEIMENT NO.-4
OBJECTIVE:- create a university database for maintaining information releated to student , corse,and
grade. The student have following attributes name,stdno,class,measure. courses(course name,course
no.,department) section(section id,course no, semester , year, instructor), grade
maintained(studentno,section id,grade), prerequistes(course no,prerequistes id).
SQL QUERY:-
Name VARCHAR(100),
Class VARCHAR(50),
Measure VARCHAR(50) );
Department VARCHAR(50) );
CourseNo INT,
PrerequisiteID INT,
CourseNo INT,
Semester VARCHAR(20),
Year INT,
Instructor VARCHAR(100),
StdNo INT,
SectionID INT,
Grade CHAR(2),
VALUES
VALUES
VALUES
VALUES
(1, 1, 'A'),
(2, 2, 'B');
INSERT INTO Prerequisites (CourseNo, PrerequisiteID)
VALUES
(101, 102);