Professional Documents
Culture Documents
Oct 2019dawwdfada
Oct 2019dawwdfada
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
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
•
name and a particular employee who manages the department. Start date
01
01
8
23
• Company’s EMPLOYEE name, ssno, address, salary, sex and birth date
.23
tat
for several projects (not necessarily controlled by her dept).
8.2
8s
3:4
91
0:3
OR
01
01
Q2) a) While reducing E-R Model into tables, whether the table to be created
8/2
GP
one to one, one to many, many to one or many to many. Explain in detail
.23
b) Distinguish between Super key, candidate key and primary key. [5]
.24
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
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
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
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
ii) Create foreign key considering EMP as child table and Dept as
.23
iii) Add column salary with appropriate data type in EMP table.
8.2
.24
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
8
C
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
OR
GP
0/0
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