DBMS Lec 23: Relational Algebra Practice Questions with Solutions | Korth book question

Описание к видео DBMS Lec 23: Relational Algebra Practice Questions with Solutions | Korth book question

#Korth_Solution, #dbms_solution #dbms #korth

Practice queries in relational algebra and SQL

Consider the relational database below, where the primary keys are underlined. Give an expression in the relational algebra to express each of the following queries :
Employee (pname, street, city)
Works (pname, cname, salary)
Company (cname, city)
Manages (pname, mgrname)

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 address, 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.


dbms practice questions with answers
relational algebra practice questions with answers
sql practice questions with answers
korth solution
solution korth
dbms solution
dbms question and answer
dbms questions and answer

Комментарии

Информация по комментариям в разработке