Database System Concepts
Database System Concepts
7th Edition
ISBN: 9781260084504
Author: Abraham Silberschatz, S. Sudarshan, Abraham, Henry Korth, Silberschatz Abraham, Silberschatz Professor
Publisher: McGraw-Hill Education
Expert Solution & Answer
Book Icon
Chapter 2, Problem 14E

a.

Explanation of Solution

Query:

ID, person_namecompany_name=”BigBank”(works))

Explanation:

  • The given query is used to find ID and name of each employee who works for BigBank in the employee database...

b.

Explanation of Solution

Query:

πID, person_name, city ( employee ⋈employee.id =works.id ( σcompany_name = "BigBank" ( works )) )

Explanation:

  • The given query is used to find ID, name and city of residence of each employee who works for BigBank in the employee database...

c.

Explanation of Solution

Query:

πID, person_name, street, city ( σ(company_name = "BigBank"   salary > 10000 ( works ⋈employee.id = works.id employee ))

Explanation:

  • The given query is used to find ID, name, street address and city of residence of each employee who works for BigBank and earns more than $10000 in the employee database...

d.

Explanation of Solution

Query:

ID, person_name

employee.city=company.city(employee ⋈employee.id=woks.id works

works.company_name=company.company_name company))

Explanation:

Blurred answer
Students have asked these similar questions
Consider the employee database of Figure 2.17. Give an expression in the relational algebra to express each of the following queries: a. Find the name of each employee who lives in city “Miami”. b. Find the name of each employee whose salary is greater than $100000. c. Find the name of each employee who lives in “Miami” and whose salary is greater than $100000.
Consider the bank database of Figure 2.18. Give an expression in the relational algebra for each of the following queries: a. Find the name of each branch located in “Chicago”. b. Find the ID of each borrower who has a loan in branch “Downtown”
Write the following queries in relational algebra, using the university schema.a. Find the ID and name of each instructor in the Physics department.                                             b. Find the ID and name of each instructor in a department located in thebuilding “Watson”.c. Find the ID and name of each student who has taken at least one coursein the “Comp. Sci.” department.d. Find the ID and name of each student who has taken at least one coursesection in the year 2018.e. Find the ID and name of each student who has not taken any coursesection in the year 2018.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education