This question is related to the subject of database Consider the System Description as in the attached picture. you are advised to reply the following queries, keeping in view the above mention system description title as “Dream Home branch offices case study”. only the query is required. List the details of branches in a given city. Identify the total number of branches in each city. List the name, position, and salary of staff at a given branch, ordered by staff name. Identify the total number of staff and the sum of their salaries. Identify the total number of staff in each position at branches in Glasgow. List the names of staff supervised by a named Supervisor. List the property number, address, type, and rent of all properties in Glasgow, ordered by rental amount. Create a branch and staff relationship in view of joint perspective. List the details of properties for rent managed by a named member of staff. Identify the total number of properties assigned to each member of staff at a given branch. List the details of properties provided by business owners at a given branch. Identify the total number of properties of each type at all branches. Identify the details of private property owners that provide more than one property for rent. Identify flats with at least three rooms and with a monthly rent no higher than £500 in Aberdeen.  List the details of leases due to expire next month at a given branch. List the total number of leases with rental periods that are less than one year at branches in London. List the total possible daily rental for property at each branch, ordered by branch number.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 5HOA: Access path A database table is composed of records and fields hold data. Data is stored in records....
icon
Related questions
Question

This question is related to the subject of database

Consider the System Description as in the attached picture. you are advised to reply the following queries, keeping in view the above mention system description title as “Dream Home branch offices case study”. only the query is required.

  1. List the details of branches in a given city.
  2. Identify the total number of branches in each city.
  3. List the name, position, and salary of staff at a given branch, ordered by staff name.
  4. Identify the total number of staff and the sum of their salaries.

  5. Identify the total number of staff in each position at branches in Glasgow.

  6. List the names of staff supervised by a named Supervisor.
  7. List the property number, address, type, and rent of all properties in Glasgow, ordered by rental amount.
  8. Create a branch and staff relationship in view of joint perspective.

  9. List the details of properties for rent managed by a named member of staff.
  10. Identify the total number of properties assigned to each member of staff at a given branch.
  11. List the details of properties provided by business owners at a given branch.

  12. Identify the total number of properties of each type at all branches.

  13. Identify the details of private property owners that provide more than one property for rent.
  14. Identify flats with at least three rooms and with a monthly rent no higher than £500 in Aberdeen.
  15.  List the details of leases due to expire next month at a given branch.
  16. List the total number of leases with rental periods that are less than one year at branches in London.
  17. List the total possible daily rental for property at each branch, ordered by branch number.
System Description:
Branches Dream Home has branch offices in cities throughout the United Kingdom. Each branch
office is allocated members of staff, including a Manager, who manages the operations of the
office. The data describing a branch office includes a unique branch number, address (street, city,
and postcode), telephone numbers (up to a maximum of three), and the name of the member of
staff who currently manages the office. Additional data is held on each Manager, which includes
the date that the Manager assumed his or her position at the current branch office, and a monthly
bonus payment based upon his or her performance in the property for rent market. Staff
Members of staff with the role of Supervisor are responsible for the day-to-day activities of an
allocated group of staff called Assistants (up to a maximum of 10, at any one time). Not all
members of staff are assigned to a Supervisor. The data stored regarding each member of staff
includes staff number, name, address, position, salary, name of Supervisor (where applicable), and
the details of the branch office at which a member of staff is currently working. The staff number
is unique across all branches of Dream Home. Properties for rent each branch office offers a range
of properties for rent. The data stored for each property includes property number, address
(street, city, and postcode), type, and number of rooms, monthly rent, and the details of the
property owner. The property number is unique across all branch offices. The management of a
property is assigned to a member of staff whenever it is rented out or requires to be rented out. A
member of staff may manage a maximum of 100 properties for rent at any one time. When a
given property is available for rent, the property details will be displayed on the Dream Home
Web site and, when necessary, as advertisements in local and national newspapers. Property
owners the details of property owners are also stored. There are two main types of property
owner: private owners and business owners. The data stored for private owners includes owner
number, name, address, telephone number, email, and password. The data stored on business
owners includes name of business, type of business, address, telephone number, email, password,
and contact name. The password will allow owners access to parts of the Dream Home database
using the Web. Clients Dream Home refers to members of the public interested in renting property
as clients. To become a client, a person must first register at a branch office of Dream Home. The
data stored on clients includes client number, name, telephone number, email, preferred type of
accommodation, and the maximum rent that the client is prepared to pay. Also stored is the name
of the member of staff who processed the registration, the date the client joined, and some details
on the branch office at which the client registered. The client number is unique across all Dream
Home branches. Leases when a property is rented out, a lease is drawn up between the client and
the property. The data listed in detail on the lease includes lease number, client number, name
and address, property number and address, monthly rent, method of payment, an indication of
whether the deposit has been paid deposit (calculated as twice the monthly rent), duration of
Transcribed Image Text:System Description: Branches Dream Home has branch offices in cities throughout the United Kingdom. Each branch office is allocated members of staff, including a Manager, who manages the operations of the office. The data describing a branch office includes a unique branch number, address (street, city, and postcode), telephone numbers (up to a maximum of three), and the name of the member of staff who currently manages the office. Additional data is held on each Manager, which includes the date that the Manager assumed his or her position at the current branch office, and a monthly bonus payment based upon his or her performance in the property for rent market. Staff Members of staff with the role of Supervisor are responsible for the day-to-day activities of an allocated group of staff called Assistants (up to a maximum of 10, at any one time). Not all members of staff are assigned to a Supervisor. The data stored regarding each member of staff includes staff number, name, address, position, salary, name of Supervisor (where applicable), and the details of the branch office at which a member of staff is currently working. The staff number is unique across all branches of Dream Home. Properties for rent each branch office offers a range of properties for rent. The data stored for each property includes property number, address (street, city, and postcode), type, and number of rooms, monthly rent, and the details of the property owner. The property number is unique across all branch offices. The management of a property is assigned to a member of staff whenever it is rented out or requires to be rented out. A member of staff may manage a maximum of 100 properties for rent at any one time. When a given property is available for rent, the property details will be displayed on the Dream Home Web site and, when necessary, as advertisements in local and national newspapers. Property owners the details of property owners are also stored. There are two main types of property owner: private owners and business owners. The data stored for private owners includes owner number, name, address, telephone number, email, and password. The data stored on business owners includes name of business, type of business, address, telephone number, email, password, and contact name. The password will allow owners access to parts of the Dream Home database using the Web. Clients Dream Home refers to members of the public interested in renting property as clients. To become a client, a person must first register at a branch office of Dream Home. The data stored on clients includes client number, name, telephone number, email, preferred type of accommodation, and the maximum rent that the client is prepared to pay. Also stored is the name of the member of staff who processed the registration, the date the client joined, and some details on the branch office at which the client registered. The client number is unique across all Dream Home branches. Leases when a property is rented out, a lease is drawn up between the client and the property. The data listed in detail on the lease includes lease number, client number, name and address, property number and address, monthly rent, method of payment, an indication of whether the deposit has been paid deposit (calculated as twice the monthly rent), duration of
lease, and the start and end dates of the lease period. Newspapers when required, the details of
properties for rent are advertised in local and national newspapers. The data stored includes the
property number, address, type, number of rooms, rent, the date advertised, the name of the
newspaper, and the cost to advertise. The data stored on each newspaper includes the newspaper
name, address, telephone number, and contact name. Data entry Enter the details of a new
branch (such as branch B003 in Glasgow). Enter the details of a new member of staff at a branch
(such as Ann Beech at branch B003). Enter the details of a lease between a client and property
(such as client Mike Ritchie renting out property number PG4 from the 10-May-12 to 9-May-13).
Enter the details of a property advertised in a newspaper (such as property number PG4
advertised in the Glasgow Daily newspaper on the 06-May-12).
Transcribed Image Text:lease, and the start and end dates of the lease period. Newspapers when required, the details of properties for rent are advertised in local and national newspapers. The data stored includes the property number, address, type, number of rooms, rent, the date advertised, the name of the newspaper, and the cost to advertise. The data stored on each newspaper includes the newspaper name, address, telephone number, and contact name. Data entry Enter the details of a new branch (such as branch B003 in Glasgow). Enter the details of a new member of staff at a branch (such as Ann Beech at branch B003). Enter the details of a lease between a client and property (such as client Mike Ritchie renting out property number PG4 from the 10-May-12 to 9-May-13). Enter the details of a property advertised in a newspaper (such as property number PG4 advertised in the Glasgow Daily newspaper on the 06-May-12).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Database Development
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning