CS101 Assignment # 2
CS101 Assignment # 2
VUID: BC210420077
Question:
A software developer has built a relational database model for the Learning
Management System of an online learning website. Various relations (tables) are
defined to store data records related to each entity in a separate relation. Three
of the Relations (STUDENT, COURSE, And ENROLLMENT) defined in that database
model along with their attribute are given below:
The developer needs to extract the following information given in Table-1 form
this defined database model using the relation database queries that consist of
SELECT, PROJECT and JOIN operators.
Now, in the below given (Table-2), some relational database operations (Queries)
related to the above database model are defined along with the name of resulting
new relation. The name of the resulting new relation is also used as reference to
identify that query (i.e. each query is referenced as A,B,C,D,E,F,G,H,I,J,K, and L).
You are required to identify the correct relational database query form Table-2:
Relational Queries for each of the “Required Information entry in Table-1 and
mention its reference label in the 2nd columns of the below given table against the
sr. no. Required Information for example, the answer to “Sr. no.1” entry of
“Required Information” columns is query “A” which is solved in the below given
table.
Now, you need to fill the remaining five entries in the below given table with the
reference label of correct relational database against each Sr. No. of the required
information table.
Sr. No. of Required Information given in Reference label of the correct Relational
Table-1 query
{out of A,B,C,D,E,F,G,H,I,J,K,L} Table-2
1 A
2 F
3 J
4 E
5 L
6 G