Question: OFFICE table OWNER table PROPERTY table RESIDENTS table SERVICE_REQUEST table SERVICE_CATEGORY table Task 13: Find the service ID and property ID for each service request

OFFICE table

OWNER table

PROPERTY table

RESIDENTS table

SERVICE_REQUEST table

SERVICE_CATEGORY table
Task 13: Find the service ID and property ID for each service request whose estimated hours is greater than the number of estimated hours on all service requests on which the category number is 5.
Task 14: List the address, square footage, owner number, service ID, number of estimated hours, and number of spent hours for each service request on which the category number is 4.
Task 15: Repeat Task 14, but this time be sure each property is included regardless of whether it currently has any service requests for category 4.
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 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
Get step-by-step solutions from verified subject matter experts
