Вы находитесь на странице: 1из 2

DTE 1

st
Semester (4) 18 February 2013 (Morning)

ISLAMIC UNIVERSITY OF TECHNOLOGY (IUT)
ORGANISATION OF ISLAMIC COOPERATION (OIC)
Department of Computer Science and Engineering (CSE)

MID SEMESTER EXAMINATION WINTER SEMESTER, 2012-2013
DURATION: 1 Hour 30 Minutes FULL MARKS: 75
CSE 3173: Introduction to Database Management Systems
Programmable calculators are not allowed. Do not write anything on the question paper.
There are 4 (four) questions. Answer any 3 (three) of them.
Figures in the right margin indicate marks.

1. a) Discuss different types of Data Model.

8
b) Describe different types of integrity constraint followed by the database systems.

8
c) Discuss different types of keys that are used in database with appropriate examples. 9

2. a) Consider the following relation schema:

Employee (person_name, street, city), primary key - person_name
Works (person_name, company name, salary) primary key - person_name
Company (company_name, city), primary key - company_name
Manages (person_name, manager_name), primary key - person_name

Now using Relational Algebra:

i. Find the names of all employees who live in the same city and on the same street as do
their managers and works for the small bank corporation.

ii. Find the name of the employees who get the smallest salary and do not work for First
Bank Corporation.

15
5
b) Discuss the basic domain types used in SQL. 5

3. a) Consider the following database-

Employee (person_name, street, city), primary key - person_name
Works (person_name, company name, salary) primary key - person_name
Company (company_name, city), primary key - company_name
Manages (person_name, manager_name), primary key - person_name

Now using SQL:

i. Find the average salary of the employees of First Bank Corporation.
ii. Find all employees in the database who do not work for First Bank Corporation.
iii. Find the names and cities of residence of all employees who work for First Bank
Corporation.
iv. Find the company that has the most employees.

6
6
7
6




4. a) Consider an organization has different branches in different locations and all the branches
have a branch manager and few staffs. The salary scale of different employees differs
according to their designations. Construct an E-R diagram for the accounts office of that
organization to store information about different branches, employees, managers and their
respective salaries with appropriate notations.

15
b) Briefly discuss multivalued and derived attributes with appropriate examples. 10

Вам также может понравиться