employee (person_name, street, city) works (person_nате, соmpanyлaте, salary) cоmpany (compaпy лате, сity) тапages (personлате, тапаgerлате) Figure 8.8 Relational database for Exercise 8.6.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question

Consider the relational schema shown in Figure 8.8. Write each of the following queries on the schema, using SQL.
i. Find the company with the most employees. ii. Find the company with the smallest payroll.
iii. Find those companies whose employees earn a higher salary, on average, than the average salary at First Bank Corporation.

employee (person_name, street, city)
works (person_nате, соmpanyлaте, salary)
cоmpany (compaпy лате, сity)
тапages (personлате, тапаgerлате)
Figure 8.8 Relational database for Exercise 8.6.
Transcribed Image Text:employee (person_name, street, city) works (person_nате, соmpanyлaте, salary) cоmpany (compaпy лате, сity) тапages (personлате, тапаgerлате) Figure 8.8 Relational database for Exercise 8.6.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning