0% found this document useful (0 votes)
54 views6 pages

CP 4152 Database Practices I Previous Question Paper

The document provides information about educational resources available for various courses, including notes, syllabi, and question papers, accessible through the website www.binils.com and its Android app. It also discusses a company structure involving departments, employees, projects, and a banking database schema, along with normalization of relations and examples of aggregate functions in SQL. Additionally, it touches on topics like XML document handling, active databases, and access control mechanisms.

Uploaded by

anandhi.k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views6 pages

CP 4152 Database Practices I Previous Question Paper

The document provides information about educational resources available for various courses, including notes, syllabi, and question papers, accessible through the website www.binils.com and its Android app. It also discusses a company structure involving departments, employees, projects, and a banking database schema, along with normalization of relations and examples of aggregate functions in SQL. Additionally, it touches on topics like XML document handling, active databases, and access control mechanisms.

Uploaded by

anandhi.k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

POLYTECHNIC, B.E/B.TECH, M.E/M.

TECH, MBA, MCA & SCHOOL


Notes Available @
Syllabus
Question Papers
www.binils.com
Results and Many more…

www.binils.co
m

Available in /Binils Android App too, Check www.Photoplex.Net & Android App
POLYTECHNIC, B.E/B.TECH, M.E/M.TECH, MBA, MCA & SCHOOL
Notes Available @
Syllabus
Question Papers
www.binils.com
Results and Many more…

www.binils.co
m

Available in /Binils Android App too, Check www.Photoplex.Net & Android App
POLYTECHNIC, B.E/B.TECH, M.E/M.TECH, MBA, MCA & SCHOOL
Notes Available @
Syllabus
Question Papers
www.binils.com
Results and Many more…

www.binils.co
m

Available in /Binils Android App too, Check www.Photoplex.Net & Android App
POLYTECHNIC, B.E/B.TECH, M.E/M.TECH, MBA, MCA & SCHOOL
Notes Available @
Syllabus
Question Papers
www.binils.com
Results and Many more…

A Company is organized into departments. Each


department has mployees working in it. The attributes
of department include epartment number and
department name. The attributes of employee melude
employee number, employee name, date of birth,
gender, date of bining, designation and basic pay. Each
department has a manager managing it. There are also
supervisors in each department who upervise a set of
employees. Each department controls a number of
rojects. The attributes of project include project code
and project name. project is controlled only by one
department. An employee can work in ny number of
distinct projects on a day. The date an employee
worked, a time and out time has to be kept track. The
company also keeps track f the dependents of each
employee. The attributes of dependent include
ependent name, date of birth, gender and relationship
with the employee. ) Model an Entity Relationship
diagram for the above scenario. (7) i) Map the Entity
Relationship diagram you have modeled to (8)
relations.
(b) Consider the following relational schema for a banking database
application:
Available in /Binils Android App too, Check www.Photoplex.Net & Android App
POLYTECHNIC, B.E/B.TECH, M.E/M.TECH, MBA, MCA & SCHOOL
Notes Available @
Syllabus
Question Papers
www.binils.com
Results and Many more…
CUSTOMER (CID, CNAME)
BRANCH (BCODE, BNAME)
ACCOUNT (ANO, ATYPE, BALANCE, CID, BCODE)
An account can be a savings account or a current account. Check
ATYPE
in 'S' or 'C. A customer can have both types of accounts.
TRANSACTION (TID, ANO, TTYPE, TDATE, TAMOUNT) TTYPE
(Transaction Type) can be 'D' OR 'W
D-Deposit; W-Withdrawal
The primary key of each relation is underlined. Write collections in
MongoDB to implement the above relational schema.

ENROLMENT (ROLLNUMBER, NAME, COURSE CODE. COURSE NAME, SESS, GRADE)


The primary key of the relation is (ROLLNUMBER, COURSE CODE, and SESS).
The following functional dependencies hold:
ROLLNUMBER → NAME
COURSE CODE→ COURSE NAME
ROLLNUMBER, COURSE CODE, SESS→ GRADE
SESS is the session of enrolment (For example: November 2017, April 2018)
Is relation ENROLMENT normalized? If yes, justify else state reasons and normalize the same.
(7)
otism 00 (11)
Consider the following relation :
STUDENT (ROLLNUMBER, NAME, DOB, GENDER, BRANCH CODE, BRANCH_NAME)
alqmaxs
The primary key of the relation is ROLLNUMBER. The following functional dependencies hold:
ROLLNUMBER NAME, DOB, GENDER, BRANCH CODE
BRANCH CODE
BRANCH NAME
on
Is relation STUDENT normalized? If yes, justify the relation is normalized else state reasons and normalize the same.

11. (a)
(b)
PART B (5 x 13 = 65 marks)
Illustrate the use of aggregate functions with examples.
Or
The following relations keep track of airline flight information:
Flights (flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time, price: integer) Aircraft (aid:
integer, aname: string, cruisingrange: integer) Certified (eid: integer, aid: integer) Employees (eid: integer, ename:
string, salary: integer)
(i) Print the enames of pilots who can operate planes with cruising range greater than 3000 miles but are not certified
on any Boeing (4) aircraft. A customer wants to travel from Madison to New York with no more than two changes of
flight. List the choice of departure times from Madison if the customer wants to arrive in New York by 6 p.m. (4)
(ii)
Find the names of aircrafts such that all pilots certified to operate them earn more than $80,000.
12. (a) Explain the design and implementation issues of active databases.
Or
(5)
(b) Explain the architecture for Transaction Management in distributed transactions.
13. (a)
(b)
14.
(a)
How to Store and Extract XML Documents from Databases? Demonstrate with an example.
Or
Explain the role of DTD in XML. Create an XML document to represent a book store with two books and each book
should have attributes for title author and price. Write an X path expression to select all the book elements with price
greater than $20 from the created XML document.
Demonstrate the concepts of Hbase storage and distributed systems. Or
Explain MongoDB data model with neat diagram.
(b)
15.
(a)
Explain mandatory access control and role based access control.
Or
(b)
Explain encryption and public key infrastructure for preserving data privacy.
Available in /Binils Android App too, Check www.Photoplex.Net & Android App
POLYTECHNIC, B.E/B.TECH, M.E/M.TECH, MBA, MCA & SCHOOL
Notes Available @
Syllabus
Question Papers
www.binils.com
Results and Many more…
2
60430

16.
PART C (1 x 15 = 15 marks)
(a) UPS prides itself on having up-to-date information on the processing and current location of each shipped item. To
do this, UPS relies on a company-wide information system. Shipped items are the heart of the UPS product tracking
information system. Shipped items can be characterized by item number (unique), weight, dimensions, insurance
amount, destination, and final delivery date. Shipped items are received into the UPS system at a single retail center.
Retail centers are characterized by their type, uniqueID, and address. Shipped items make their way to their destination
via one or more standard UPS transportation events (i.e., flights, truck deliveries). These transportation events are
characterized by a unique schedule Number, a type (e.g, flight, truck), and a delivery Route.
(i) Create an Entity Relationship diagram that captures this information about the UPS system. Be certain to indicate
identifiers and cardinality constraints.
(ii)
(7) Convert the ER diagram into a relational database schema. Be certain to indicate primary keys and referential
integrity constraints.
(8)
Or
(b) Design a complete schema for representing items in an online shopping cart in HBase and explain the same with an
example.
3
60430

Available in /Binils Android App too, Check www.Photoplex.Net & Android App

You might also like