BIT202 Database Management System

Database Management SystemTU Board 2083

Consider the following simple database schema and write SQL statements for each of the following: Student(SID, SName, City, Faculty) Course(CID, CName, Credits) Enrollment(SID, CID, Grade) a. Use…

10

Consider the following simple database schema and write SQL statements for each of the following:

Student(SID, SName, City, Faculty) Course(CID, CName, Credits) Enrollment(SID, CID, Grade)

a. Use CREATE TABLE statement to create Student, Course and Enrollment table assuming appropriate data types for attributes. b. Insert a new student: SID=10, SName='Aarav', City='Pokhara', Faculty='BIT'. c. List the names of all students who are from 'Kathmandu'. d. Find the names of all students enrolled in the course named 'Database'. e. Update address of student to Kathmandu having SID = 10.

A worked answer is on its wayMeanwhile, read the Database Management System notes for this topic.

Discussion

Loading…

More Database Management System questions

All Database Management System old questions