Tarea Opcional 1
 

Fecha de Entrega: Viernes 31 de Marzo (en clase)
Tipo de Entrega: papel

Crear en cálculo relacional de tuplas o cálculo relacional de dominios las siguientes consultas, en base al siguiente esquema:

employee (person-name, street,city)
works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)

  1. Find the names of all employees who work for First Bank Corporation
  2. Find the names and cities of residence of all employees who work for First Bank Corporation
  3. Find the names, street addresses, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000 per annum.
  4. Find the names of all employees in this database who live in the same city as the company for which they work.
  5. Find the names of all employees who live in the same city and on the same street as do their managers.
  6. Find the names of all employees in this database who do not work for First Bank Corporation.
  7. Find the names of all employees who earn more than every employee of Small Bank Corporation.
  8. Assume the companies may be located in several cities. Find all companies located in every city in which Small Bank Corporation is located.

Detalles de la entrega