Consider A Student Registration Database Comprising of The Below Given Table Schema
Consider A Student Registration Database Comprising of The Below Given Table Schema
(K2,
K4) (A/M’15)
Student File
Course File
Professor File
Registration File
Consider a suitable sample of tuples/records for the above mentioned tables and write DML
statements (SQL) to answer for the queries listed below:
(iv) For a specific student number, in which courses is the student registered and what is
his/her name?
(vii) o address the given queries, we'll consider the following structure and assume
some sample tuples for each table. Below are SQL Data Manipulation Language
(DML) statements to answer the questions.
(viii) Table Schemas
(ix) 1. Student File
FROM Course_File
Result:
Course_Number Description
FROM Course_File
FROM Course_File
Result:
FROM Professor_File
Result:
Name Office
iv) For a specific student number, in which courses is the student registered and what is his/her
name?
To find the courses in which a specific student (e.g., Student 101) is registered, and their name:
FROM Student_File
Result:
To find the professors teaching courses that a specific student (e.g., Student 101) is registered for:
FROM Professor_File
Result:
Name
Dr. Brown
Dr. Green
Name
SELECT Student_File.Student_Name
FROM Student_File
Result:
Student_Name
Alice Smith
These DML statements will work for the given sample data and should be adaptable for a real-world
student registration database.