Use database dreamhome • All questions should be written in one SQL query 1. List the number of female and male staff 2. List the staff name and salary who has the max salary 3. List the unique city name that branch has female staff 4. List the street name that has “9” in the zipcode 5. List the number of staff working at London 6. List staff average salary for each branch
Use database dreamhome • All questions should be written in one SQL query 1. List the number of female and male staff 2. List the staff name and salary who has the max salary 3. List the unique city name that branch has female staff 4. List the street name that has “9” in the zipcode 5. List the number of staff working at London 6. List staff average salary for each branch
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Use
• All questions should be written in one SQL query
1. List the number of female and male staff
2. List the staff name and salary who has the max
salary
3. List the unique city name that branch has female
staff
4. List the street name that has “9” in the zipcode
5. List the number of staff working at London
6. List staff average salary for each branch

Transcribed Image Text:**Staff Information Table**
This table presents a detailed overview of staff members, including their identification numbers, personal details, job positions, and associated branches. Below is a structured breakdown of the data:
| **Staff No.** | **First Name** | **Last Name** | **Position** | **Sex** | **Date of Birth** | **Salary** | **Branch No.** |
|---------------|----------------|---------------|----------------|---------|------------------|------------|----------------|
| SA9 | Mary | Howe | Assistant | F | 1970-02-19 | 9000.00 | B007 |
| SG14 | David | Ford | Supervisor | M | 1958-03-24 | 18000.00 | B003 |
| SG37 | Ann | Beech | Assistant | F | 1960-11-10 | 12000.00 | B003 |
| SG5 | Susan | Brand | Manager | F | 1940-06-03 | 24000.00 | B003 |
| SL21 | John | White | Manager | M | 1945-10-01 | 30000.00 | B005 |
| SL41 | Julie | Lee | Assistant | F | 1965-06-13 | 9000.00 | B005 |
**Description of Columns:**
- **Staff No.:** Unique identifier for each staff member.
- **First Name & Last Name:** The first and last names of the staff members.
- **Position:** The role or job title held by the staff member within the organization.
- **Sex:** Gender of the staff member, denoted as M for Male and F for Female.
- **Date of Birth (DOB):** The birth date of each staff member.
- **Salary:** The annual salary in monetary units.
- **Branch No.:** The branch number to which each staff member is assigned.
The table provides valuable insights into the hierarchical structure and the distribution of staffing along with their respective financial compensations and allocation to different branches.

Transcribed Image Text:Below is a transcription of the table data, which could be featured on an educational website discussing data management or database organization:
---
### Branch Information
This table provides a list of branches with their corresponding address details, including street, city, and postcode.
| Branch Number | Street | City | Postcode |
|---------------|--------------------|----------|----------|
| B002 | 56 Cover Drive | London | NW10 6EU |
| B003 | 163 Main Street | Glasgow | G11 9QX |
| B004 | 32 Manse Road | Bristol | BS99 1NZ |
| B005 | 22 Deer Road | London | SW1 4EH |
| B007 | 16 Argyll Street | Aberdeen | AB2 3SU |
This structured format allows easy access and readability for data relating to branch locations, useful in systems that require the management of multiple geographical sites. Each row represents a specific branch, identified by its unique "Branch Number."
---
This content can be used to illustrate how tabular data can be organized and the practical uses of such a format in database systems.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY