Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
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 library database of Figure 3.20.Write the following queries in SQL.a. Find the member number and name of each member who has borrowedat least one book published by “McGraw-Hill”.b. Find the member number and name of each member who has borrowedevery book published by “McGraw-Hill”.c. For each publisher, find the member number and name of each memberwho has borrowed more than five books of that publisher.d. Find the average number of books borrowed per member. Take into accountthat if a member does not borrow any books, then that member doesnot appear in the borrowed relation at all, but that member still counts inthe average.
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”
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