Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 21400
Fall 2023
MySQL Homework-4
Use MySQL and the StayWell database to complete the following exercises.
1. For every property, list the management office number, address, monthly rent, owner number,
owners first name, and owners last name.
2. For every completed or open service request, list the property ID, description, and status.
3. 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.
4. List the first and last names of all owners who own a two-bedroom property. Use the IN
operator in your query.
5. Repeat Exercise 4, but this time use the EXISTS operator in your query
6. List the property IDs of any pair of properties that have the same number of bedrooms. For
example, one pair would be property ID 2 and property ID 6, 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.
7. List the square footage, owner number, owner last name, and owner first name for each
property managed by the Columbia City office.
8. Repeat Exercise 7, but this time include only those properties with three bedrooms.
9. List the office number, address, and monthly rent for properties whose owners live in
Washington state or own two-bedroom properties.
10. List the office number, address, and monthly rent for properties whose owners live in
Washington state and own a two-bedroom property.
11. List the office number, address, and monthly rent for properties whose owners live in
Washington state but do not own two-bedroom properties.
12. 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 5.
13. 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 cat-egory
number is 5.

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

Step: 3

blur-text-image

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

More Books

Students also viewed these General Management questions