The questions in this group refer to the following three relations: SALESPERSON (Name, Age, Salary) ORDER (Number, Customer Name, Salesperson Name, Amount) CUSTOMER (Name, City, Industry Type) SALESPERSON Name Age Salary Abel 63 120,000 Baker 38 42,000 Jones 26 36,000 Murphy 42 50,000 Zenith 59 118,000 Kobad 27 34,000 ORDER Number CustName SalespersonName Amount 100 Abernathy Construction Zenith 560 200 Abernathy Construction Jones 1800 300 Manchester Lumber Abel 480 400 Amalgamated Housing Abel 2500 500 Abernathy Construction Murphy 6000 600 Tri-City Builders Abel 700 700 Manchester Lumber Jones 150 CUSTOMER Name City Industry Type Abernathy Construction Willow B Manchester Lumber Manchester F Tri-City Builders Memphis B Amalgamated Housing Memphis B Use the data in those tables and show the SQL statements to display or modify data as indicated in the following questions: 7.Compute the number of orders for each salesperson, considering only orders for an amount exceeding 500. 8.Show the industry type and ages of the salespeople of all orders for companies in Memphis. 9.Show the names of salespeople who have two or more orders. 10.Show an SQL statement to delete customer ABERNATHY CONSTRUCTION.
The questions in this group refer to the following three relations:
SALESPERSON (Name, Age, Salary)
ORDER (Number, Customer Name, Salesperson Name, Amount)
CUSTOMER (Name, City, Industry Type)
SALESPERSON
Name |
Age |
Salary |
Abel |
63 |
120,000 |
Baker |
38 |
42,000 |
Jones |
26 |
36,000 |
Murphy |
42 |
50,000 |
Zenith |
59 |
118,000 |
Kobad |
27 |
34,000 |
ORDER
Number |
CustName |
SalespersonName |
Amount |
100 |
Abernathy Construction |
Zenith |
560 |
200 |
Abernathy Construction |
Jones |
1800 |
300 |
Manchester Lumber |
Abel |
480 |
400 |
Amalgamated Housing |
Abel |
2500 |
500 |
Abernathy Construction |
Murphy |
6000 |
600 |
Tri-City Builders |
Abel |
700 |
700 |
Manchester Lumber |
Jones |
150 |
CUSTOMER
Name |
City |
Industry Type |
Abernathy Construction |
Willow |
B |
Manchester Lumber |
Manchester |
F |
Tri-City Builders |
Memphis |
B |
Amalgamated Housing |
Memphis |
B |
Use the data in those tables and show the SQL statements to display or modify data as indicated in the following questions:
7.Compute the number of orders for each salesperson, considering only orders for an amount exceeding 500.
8.Show the industry type and ages of the salespeople of all orders for companies in Memphis.
9.Show the names of salespeople who have two or more orders.
10.Show an SQL statement to delete customer ABERNATHY CONSTRUCTION.
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)