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
answer should avoid using AI and should be basi and please explain
asnwer should avoid using AI
answer should avoid using AI (such as ChatGPT), do not any answer directly copied from AI would and explain code
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage