Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Request 1 : Retrieve the managerid, mfname, mlname, and the sum of msalary and mbonus for each manager who receives a bonus. ( 1 )

Request 1: Retrieve the managerid, mfname, mlname, and the sum of msalary and mbonus for
each manager who receives a bonus.
(1) Provide the SQL query for the request.
(2) Provide the corresponding result in a table format (NOT a screenshot).
(3) Identify the number of managers in the table and the full name(s) of the manager(s) with
the least and the largest sum of msalary and mbonus (Not a SQL query).
Request 2: For each building, retrieve the buildingid, number of apartments in the building, and
number of bedrooms in the building.
(1) Provide the SQL query for the request.
(2) Provide the corresponding result in a table format.
(3) Identify the buildingid(s) with the least apartments, and the buildingid(s) with the most
bedrooms.
Request 3: For each staff member, retrieve the smemberid, smembername, and number of
buildings where s/he cleans apartments.
(1) Provide the SQL query for the request.
(2) Provide the corresponding result in a table format.
(3) Identify the smembername(s) with the most buildings where he/she cleans apartments,
and the smembername(s) with the least apartments that he/she cleans.
Request 4: For all corporate clients that were referred by other corporate clients and that are also
renting one or more apartments from us, retrieve the name of the corporate client, the clients
industry, location, building id, apartment number, and the name of the corporate client that
referred it.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago