The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
43 views

Consider the employee database shown here. Give expressions in tuple
relational calculus and domain relational calculus for each of the following
queries:
a. Find the names of all employees who work for “First Bank Corporation”.
b. Find the names and cities of residence of all employees who work for
“First Bank Corporation”.
c. Find the names, street addresses, and cities of residence of all employees
who work for “First Bank Corporation” and earn more than
$10,000.
d. Find all employees who live in the same city as that in which the
company for which they work is located.
e. Find all employees who live in the same city and on the same street
as their managers.
f. Find all employees in the database who do not work for “First Bank
Corporation”.
g. Find all employees who earn more than every employee of “Small
Bank Corporation”.
h. Assume that the companies may be located in several cities. Find all
companies located in every city in which “Small Bank Corporation”
is located.

here is the database

employee (person name, street, city )
works (person name, company name, salary)
company (company name, city)
manages (person name, manager name)
asked in Databases by Boss (10.2k points) | 43 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,814 questions
54,518 answers
188,351 comments
75,294 users