Professional Documents
Culture Documents
Il. Using relational algebra, the query that finds customers who have a balance of over 1000 is
Branch_scheme=(Branch_name,assets,Branch_city)
Customer_scheme=(Customer_name,street,Customer_city)
Deposit_scheme=(Branch_name.account_number,Customer_name,balance)
111. Refer above relation .Which of the following queries finds the clients of banker Agassi and
the city they live in?
1. IlClient. Customer name.Customer_city
(GClient.Customer_name=Customer.Customer_name) (GBanker_name= "Agassi"(Client x
Customer))
2. IlCustomer_name.Customer_city (GBanker_name= "Agassi" (Client x Customer))
3. IlClient.Customer name.Customer city (IIBanker name= "Agassi"
(oClient.Customer_name=Customer.Customer_name (Client x Customer)))
4. IlCustomer_name, Customer_city (oBanker_name= "Agassi" (Client x Customer)
Justify your answers (1 Marks)
IV. For select operation the appear in the subscript and the argument
appears in the parenthesis after the sigma.
1. Predicates, relation
2. Relation, Operation
3. Relation, Predicates
4. Operation, Predicates
Justify your answers (1 Marks)
V. Choose the correct statement:
1. An alternative key is a candidate key that is not a primary key.
2. An alternate key is a primary key that is not a candidate key.
3. An alternate key is a candidate key that is also a primary key
Justify your answers (1 Marks)
VI. Information about a collection of students is given by the relation Studlnfo (Studld,
name, sex). The relation enroll (studld, course Id) gives which student has enrolled
for (or taken) what course (s). Assume that every course is taken by at least one male
and at least one male and at least one female student.
What does the following relational algebra expression represent? Justify your answers (1
Marks)
"courseID (studlnfo) X ncourse ID (enroll)) -enroll)
Select from among the following candidates for relations, if the above ERD is mapped into
relational model.
1. Customer (NID,CName)
2. Account(DateAccCreated,BName,CName)
3. Bank(BankID,NID,BName)
4. Account(BankID,NID,DateAccCreated)
Justify your answers. (1 Marks)
Vlll. Relational Algebra is a query language that takes two relations as input and produces
another relation as output of the query. (1 Marks)
IX. A university registrar's office maintains data about the following entities:
1. Courses, including number, title, credits, syllabus, and prerequisites;
2. Course offerings, including course number, year, semester, section number,
instructor(s), timings, and classroom;
3. Students, including student-id, name, and program;
4. Instructors, including identification number, name, department, and title. Further,
the enrolment of students in courses and grades awarded to students in each course
they are enrolled for must be appropriately modelled.
Construct an E-R diagram for the registrar's office. Document all assumptions that you make