Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the following relational schema for an employee database system: employee ( e - id , e - name, rank, e - dept, e -
Given the following relational schema for an employee database
system:
employeeeid ename, rank, edept, ecity
rank is a foreign key to paying
projectpid pname, pdept, budget, pcity
workseid pid duty, since
eid is a foreign key to employee, pid is a foreign key to project
payingrank salary
ANSWER THE QUESTION:
a Find the employees eid and ename from the Construction department who are working
in Ankara projects with a budget higher than Million TL
b Find the employees eid and ename with a rank higher than and are working in the
projects located in their cities.
c Find the employees eid and ename from the Construction department who are working
in all the projects from Istanbul.
d Find the employees eid and ename from Ankara who are working as Technician since
and have a salary higher than TL
e Find the projects pid and pname from Istanbul with all its employees having a salary
higher than TL
f Find the salary of the employees with the highest rank.
g For each city, find the number of projects together with the total budget over all the
projects in that city.
h Find the number of employees from Ankara for each rank who are working in the projects
with a budget higher than Million TL
i Find the projects pid and pname from Istanbul with budgets that are higher than the
budgets of all the projects from Ankara.
j Find the projects pid and pname from Ankara with budgets that are at least twice the
total sum of the salaries paid to their employees.
k Find the employees and their salaries eid and salary who are working in the Ankara
project with the highest budget.
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