Question: GEIT 3 3 4 1 : Database I Assignment# 1 1 ) Let R ( A 1 , A 2 , A 3 ) be
GEIT : Database I
Assignment#
Let RA A A be a relation schema such that:
domAABC
domA
domA
Give an example of a valid tuples relation state. point
Give an example of an invalid tuples relation state. point
Consider the following schema and then answer the questions that follow:
EMPLOYEE:
EMPCODE EMPLNAME EMPFNAME EMPDOB EMPPHONE EMPSALARY STORECODE
Williamson John
Ratula Nancy
Greenboro Lottie
Rumpersto Jennie
Smith Robert
Jones Rose
Rosten Peter
Smith Sherry
Ron Frank
Elain Roberts
STORE:
STORECODE STORENAME STOREYTDSALES REGIONCODE
Access Jungle
Database Corner
PC Master
Computer City
REGION:
REGIONCODE REGIONDESCRIPT
East
West
North
South
For the EMPLOYEE relation, give an example of a superkey and an example of a key. point
Does the STORE relation satisfy the referential integrity constraint? If No explain why? point
Does the REGION relation satisfy the entity integrity constraint? If No explain why? point
Using the COMPANY database state, express the following queries in relational algebra:
Select all female employees. point
Select all the employees supervised by the employee whose Social Security Number SSN is point
Select all female employees that work in department point
Select all projects controlled by department point
Select the dependent name and birth date of all dependents that belong to the employee whose SSN is point
Produce a relation showing the employee first name, last name, name of hisher dependent, dependents birth date, and relationship to the employee. point
Find the first and last name of all nonmanagers. point
Use the natural join operation to find the social security number of the employee, the project number heshe works on and the project name sheshe works on point
Draw the intermediate relations R R and the final RESULT relation produced by the following relational algebra expression: points
R DEPARTMENT PROJECT
DnumberDnum
Rsigma R
Dname Research
RESULT R
Dname, Dnumber, Pname, Pnumber
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
