It-244 introduction to databases assignment questions


Introduction to Databases Assignment Questions

Question One - Consider the following three relations:

1757_figure.png

For each of the following relational expressions, compute the result on the above relations and submit only the final answer. For example, for query: πB, D(S), the result should be entered as: {(a, x), (b, y), (b, x), (c, y)}.

a. πA, D(R×S)

b. πA, D(R∞S)

c. πE(T) - πE(S∞T)

Question Two - Consider the Bank database:

414_figure1.png

a. What are the appropriate primary keys in each relation?

b. Given your choice of primary keys, identify appropriate foreign keys.

Question Three - Consider the relational database of instructor:

ID

Name

DOB

Gender

Dept_No

E101

Ahmed

15-JUL-1986

M

2

E103

Ali

04-MAY-1989

M

2

E104

Sara

29-OCT-1987

F

1

E102

Omar

20-MAY-1988

M

3

E105

Hind

23-JAN-1980

F

4

a. Identify at least four possible super keys?

b. Identify at least three possible candidate keys?

Question Four - Employee (Id, emp_name, age, occupation_Id, city_Id)

Occupation (occupation_id, occup_name)

City (city_id, city_name)

Consider the above relational database. Give an expression in the relational algebra to express each of the following queries:

a. Find the names and ages of all employees who work in "New York".

b. Find the names and cities of all employees who work as "Software Engineer".

Request for Solution File

Ask an Expert for Answer!!
Database Management System: It-244 introduction to databases assignment questions
Reference No:- TGS02480018

Expected delivery within 24 Hours