Question: CIT 2 1 4 0 0 Fall 2 0 2 3 MySQL Homework - 4 Use MySQL and the StayWell database to complete the following
CIT
Fall
MySQL Homework
Use MySQL and the StayWell database to complete the following exercises.
For every property, list the management office number, address, monthly rent, owner number,
owners first name, and owners last name.
For every completed or open service request, list the property ID description, and status.
For every service request for furniture replacement, list the property ID management office
number, address, estimated hours, spent hours, owner number, and owners last name.
List the first and last names of all owners who own a twobedroom property. Use the IN
operator in your query.
Repeat Exercise but this time use the EXISTS operator in your query
List the property IDs of any pair of properties that have the same number of bedrooms. For
example, one pair would be property ID and property ID because they both have four
bedrooms. The first property ID listed should be the major sort key and the second property ID
should be the minor sort key.
List the square footage, owner number, owner last name, and owner first name for each
property managed by the Columbia City office.
Repeat Exercise but this time include only those properties with three bedrooms.
List the office number, address, and monthly rent for properties whose owners live in
Washington state or own twobedroom properties.
List the office number, address, and monthly rent for properties whose owners live in
Washington state and own a twobedroom property.
List the office number, address, and monthly rent for properties whose owners live in
Washington state but do not own twobedroom properties.
Find the service ID and property ID for each service request whose estimated hours are
greater than the number of estimated hours of at least one service request on which the category
number is
Find the service ID and property ID for each service request whose estimated hours are
greater than the number of estimated hours on every service request on which the category
number is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
