Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment# 1 1 ) Let R ( A 1 , A 2 , A 3 ) be a relation schema such that: dom ( A
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started