You are on page 1of 3

Total No. of Questions :6] SEAT No.

8
23
P68 [Total No. of Pages :3

ic-
Oct./TE/ Insem. - 187

tat
T.E. (Computer Engg.)

8s
DATABASE MANAGEMENT SYSTEMS

3:4
01 91
(2015 Course) (Semester-I)

0:3
0
91
Time : 1 Hour] 0/0 13 [Max. Marks :30
Instructions to the candidates:
0
8/2
.23 GP

1) Answer Q1 or Q2, Q3 or Q4, Q5 or Q6.


2) Neat diagrams must be drawn wherever necessary.
E
82

3) Figures to the right side indicate full marks.

8
C

23
4) Assume suitable data, if necessary.

ic-
16

tat
8.2

8s
Q1) Assuming you as a part of design and development team of an organization,
.24

3:4
propose E-R model using E-R diagram for the following data requirements.
91
49

Also convert and represent E-R model into tables: [10]


0:3
30

Company organized into DEPARTMENT. Each department has unique


91


name and a particular employee who manages the department. Start date
01
01

for the manager is recorded. Department may have several locations.


8/2
GP

• A department controls a number of PROJECT. Projects have a unique


0/0

name, number and a single location.


CE
82

8
23
• Company’s EMPLOYEE name, ssno, address, salary, sex and birth date
.23

are recorded. An employee is assigned to one department, but may work


ic-
16

tat
for several projects (not necessarily controlled by her dept).
8.2

8s

• Number of hours/week an employee works on each project is recorded.


.24

3:4
91

• Employee’s DEPENDENT are tracked for health insurance purposes


49

0:3

(dependent name, birthdate, relationship to employee).


30
91

OR
01
01

Q2) a) While reducing E-R Model into tables, whether the table to be created
8/2
GP

for relationship or not is depend on mapping cardinality between entity


0/0

sets i.e decisions needs to be taken considering mapping cardinality is


CE
82

one to one, one to many, many to one or many to many. Explain in detail
.23

the decision taken during the above situations. [5]


16
8.2

b) Distinguish between Super key, candidate key and primary key. [5]
.24

TE/ Insem. - 187 1 P.T.O.


49
8
23
Q3) a) Consider the following database schema: [5]

ic-
Emp(E_number,E_name,Dept_no)

tat
Dept(Dept_no,Dept_name)

8s
Address(Dept_name,Dept_location)

3:4
01 91
0:3
0
91
Write SQL queries for following requirements (any 2)
0/0 13
i) Display the name of department for the employee having E_number
0
8/2
‘E1011’.
.23 GP

ii) Display the location of department where employee ‘Ramesh’ is


E
82

working.

8
C

23
iii) Display total no. of employees working in each department.

ic-
16

tat
8.2

8s
b) Elaborate the need of database views. Also explain the situations where
.24

3:4
in the view created are updateable views. [5]
91
49

0:3
OR
30
91

Q4) a) Write Pl/SQL block of code for following requirement: [5]


01
01

Student_fees(PRN,S_name,class,fees_paid)
8/2
GP

Accept the PRN of student from user, check the fees paid by student, if
0/0

fees paid is less than 30,000 then display the message on screen Not
CE
82

8
paid full fees, and display the total fees due. If fees_paid is greater than

23
.23

or equal to 30,000 then display message no fees due.


ic-
16

tat
8.2

8s

b) Emp(E_number,E_name,Dept_no) [5]
.24

3:4
91

Dept(Dept_no,Dept_name)
49

0:3
30

Consider the schema given above. Consider above tables are created
91

without considering the Dept_no as primary key in Dept table and foreign
01
01

key in Emp table. Assuming tables are already created write SQL queries
8/2
GP

for following requirements.


0/0

i) Create primary key in dept table considering above situations


CE
82

ii) Create foreign key considering EMP as child table and Dept as
.23

master table also consider the above situation.


16

iii) Add column salary with appropriate data type in EMP table.
8.2
.24

TE/ Insem. - 187 2


49
Q5) a) Consider a table having structure Student (Roll_no, Branch_code,

8
Marks_obtained, Exam_name, Total_marks) [7]

23
ic-
Note following points:

tat
i) Composite Primary key for student table is (Roll_no,Branch_code)

8s
3:4
ii) Branch_code column stores the code of branch for which students

01 91
0:3
have taken admission.

0
91
iii) Exam_name attribute is depend on both Roll_no & Branch_code
0/0 13
0
iv) Total_marks attribute is depend on Exam_name attribute
8/2
.23 GP

Considering above requirement state whether the table created is in


Third Normal form or not? Why? If not in Third normal for propose
E
82

8
C

the database design for above requirements which is in Third Normal

23
ic-
Form.
16

tat
b) Twelve rules are proposed by codd, which according to him, a database
8.2

8s
must obey in order to be regarded as a true relational database. One of
.24

3:4
the rule is Comprehensive Data Sub-Language Rule. A database can
91
49

0:3
only be accessed using a language having linear syntax that supports
30

data definition, data manipulation, and transaction management operations.


91

Explain in brief above rule. Also state its significance. [3]


01
01
8/2

OR
GP
0/0

Q6) a) Explain why Database normalization is required for good relational


CE
82

8
database design? Explain with example requirements of Second Normal

23
Form. [7]
.23

ic-
16

tat
b) Explain in brief with suitable example Full functional dependency & partial
8.2

8s

dependency. [3]
.24

3:4
91
49

0:3
30
91


01
01
8/2
GP
0/0
CE
82
.23
16
8.2
.24

TE/ Insem. - 187 3


49

You might also like