Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OFFICE table OWNER table PROPERTY table RESIDENTS table SERVICE_REQUEST table SERVICE_CATEGORY table ANSWE ONLY 7-10!!!!! Task 1: For every property, list the management office number,

image text in transcribed

OFFICE table

image text in transcribed

OWNER table

image text in transcribed

PROPERTY table

image text in transcribed

RESIDENTS table

image text in transcribed

SERVICE_REQUEST table

image text in transcribed

SERVICE_CATEGORY table

ANSWE ONLY 7-10!!!!!

Task 1: For every property, list the management office number, address, monthly rent, owner number, owners first name, and owners last name.

Task 2: For every completed or open service request, list the property ID, description, and status.

Task 3: For every service request for janitorial work, list the property ID, management office number, address, estimated hours, spent hours, owner number, and owners last name.

Task 4: List the first and last names of all owners who own a two-bedroom property. Use the IN operator in your query.

Task 5: Repeat Task 4, but this time use the EXISTS operator in your query.

Task 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.

Task 7: List the square footage, owner number, owner last name, and owner first name for each property managed by the StayWell-Columbia City office.

Task 8: Repeat Task 7, but this time include only those properties with three bedrooms.

Task 9: List the office number, address, and monthly rent for properties whose owners live in Washington State or own two-bedroom properties.

Task 10: List the office number, address, and monthly rent for properties whose owners live in Washington State and own a two-bedroom property.

OFFICE_NUM OFFICE_NAME ADDRESS AREA CITY STATE ZIP CODE 1 StayWell-Columbia City 1135 N. Wells Avenue Columbia City Seattle WA 98118 2. StayWell-Georgetown 986 S. Madison Rd Georgetown Seattle WA 98108 OWNER_NUM LAST_NAME FIRST_NAME ADDRESS CITY STATE ZIP CODE AK102 Aksoy Ceyda 411 Griffin Rd. Seattle WA 98131 BI109 Bianchi Nicole 7990 Willow Dr. New York NY 10005 BU106 Burke Ernest 613 old Pleasant St. Twin Falls ID 83303 C0103 Cole Meerab 9486 Circle Ave. Olympia WA 98506 J0110 Jones Ammarah 730 Military Ave. Seattle WA 98126 KO104 Kowalczyk Jakub 7431 S. Bishop St. Bellingham WA 98226 LO108 Lopez Janine 9856 Pumpkin Hill In. Everett WA 98213 MO100 Moore Elle-May 8006 W. Newport Ave. Reno NV 89508 PA101 Patel Makesh 7337 Sheffield St. Seattle WA 98119 RE107 Redman Seth 7681 Fordham St. Seattle WA 98119 SI105 Sims Haydon 527 Primrose Rd. Portland OR 97203 PROPERTY_ID OFFICE_NUM ADDRESS SQR_FT BDRMS FLOORS MONTHLY RENT OWNER_NUM 1 1 30 West Thomas Rd. 1600 3 1 1400 BU106 2. 1 782 Queen Ln. 2100 4 2 1900 AK102 3 1 9800 Sunbeam Ave. 1005 2 1 1200 BI 109 4 1 1 105 North Illinois Rd. 1750 3 1 1 1650 KO104 5 1 887 Vine Rd. 1125 2 1 1160 SI 105 6 1 8 Laurel Dr. 2125 4. 2 2050 MO100 7 2 447 Goldfield St. 1675 3 2 1700 C0103 8 2 594 Leatherwood Dr. 2700 5 2 2750 KO104 9 2 504 Windsor Ave. 700 2 1 1050 PA101 10 2 891 Alton Dr. 1300 3 1 1600 LO108 11 2 9531 Sherwood Rd. 1075 2 1 1100 JO110 12 2 2 Bow Ridge Ave. 1400 3 2 1700 RE107 RESIDENT_ID FIRST_NAME SURNAME PROPERTY_ID 1 Albie OD Ryan 1 2 Tariq Khan 1 3 Ismail Salib 1 4 Callen Beck 5 Milosz Polansky N N N N 09 Ashanti Lucas 7 Randy Woodrue 00 Aislinn Lawrence 3 9 Monique French 3 10 Amara Dejsuwan 4 SERVICE ID PROPERTY ID CATEGORY_NUMBER OFFICE ID DESCRIPTION STATUS EST_HOURS SPENT_HOURS NEXT_SERVICE_DATE 1 11 2 2 The second bedroom upstairs is not heating up at night. Problem has been confirmed. central heating engineer has been scheduled. 2 2019-11-01 2 1 4 1 A new strip light is needed for the kitchen. Scheduled 1 0 2019-10-02 3 6 5 1 The bathroom door does not close properly. Service rep has confirmed issue. Scheduled to be refitted. 3 1 2019-11-09 4 2 4. 1 New outlet has been requested for the first upstairs bedroom. (There is currently no outlet). Scheduled 1 0 2019-10-02 5 8 3 2 New paint job requested for the common area (lounge). Open 10 0 NULL 6 4 1 1 Shower is dripping when not in use. Problem confirmed. Plumber has been scheduled. 4 2 2019-10-07 7 2 2 1 Heating unit in the entrance smells like its burning. Service rep confirmed the issue to be dust in the heating unit. To be cleaned. 1 0 2019-10-09 8 9 1 2 Kitchen sink does not drain properly. Problem confirmed. Plumber scheduled. 2 2019-11-12 9 12 6 2 New sofa requested. Open 2 0 NULL CATEGORY_NUM CATEGORY_DESCRIPTION 1 Plumbing 2 Heating 3 Painting 4 Electrical Systems 5 Carpentry Furniture replacement 6

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago