You are on page 1of 3

M.E.

S COLLEGE OF ARTS & COMMERCE


ZUARINAGAR -GOA S.Y.BCA-SEMESTER 111- ISA 1
Sub: DBMS Marks: 20 Duration: 60 Mins

I. There are 2 relations: UPSC (exam_date, exam_center, branch_id) and candidate


(rollno,name, bid, refno, choice_of_date). In a candidate relation, bid is the foreign key which
refersto the key of UPSC. Suppose an insertion into candidate relation and deletion from
UPSC relation is done, then which of the following statement is true?
I. Insertion into candidate relation can cause inconsistency
2. Deletion from UPSC relation can cause inconsistency
3. Both operations can cause inconsistency of data.
Justify your answers (1 Marks)

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)

I. ocustomer_name (Ilbalance> 1000 (Borrow))


2. 1000 (Deposit))
3. Ilcustomer_name (Gbalance> 1000 (Borrow))
4. ocustomer_name (Ilbalance> 1000 (Deposit))
Justify your answers (I Marks)

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)

about the mapping constraints. 4 marks.


2 marks
X. Explain with the help of example Data Dictionary.
XI. Explain different levels of Data Abstraction? With an example. 2 marks
Vll. Consider the following ERD diagram illustrating the relationship of customer and banks.

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

You might also like