Professional Documents
Culture Documents
Subhasis Das Ass-3
Subhasis Das Ass-3
SUBJECT - DBMS
NAME – Subhasis Das ROLL NO – 302011001107
Year – 2ND Semester - 3rd
DEPARTMENT – INFORMATION AND TECHNOLOGY
________________________________________________________
ER DIAGRAM:
SCHEMA:
CREATE DATABASE INSTITUTION;
USE INSTITUTION;
5. Give the details of a STUDENT with all Subjects and Grade where
he/she enroll (Enter the sid value as input).
SELECT E.STUID AS ID, E.STUNAME AS NAME, E.COURSE_ID AS COURSE_ID,
C.COURSE_NAME AS COURSE_NAME, R.SUBNAME AS SUBJECT_NAME,
R.MGRADE AS GRADE
-> FROM ENROLLMENT E, RESULTS R, COURSE C
-> WHERE E.STUID = R.STUID AND E.STUID=18067 AND
E.COURSE_ID=C.COURSE_ID;
11. Delete the record of the student who is enrolled in the course
‘IT’.
DELETE FROM DEPARTMENT WHERE CNAME='IT';