Question: Please create . csv files from Your submission document must include BOTH the SQL statement you wrote EXACTLY AS RUN and the results for each
Please create csv files from Your submission document must include BOTH the SQL statement you wrote EXACTLY AS RUN and the results for each query execution.
Results can downloaded as a CSV files from Oracle, opened in Excel, and copypasted to your Word document.
StayWell Student Accommodation
Use SQL and the StayWell Student Accommodation database Figures through in
Module to complete the following exercises. If directed to do so by your instructor, use the
information provided with the Module Exercises to print your output or save it to a document.
List the owner number, last name, and first name of every property owner.
List the complete PROPERTY table all rows and all columns
List the last name and first name of every owner who lives in Seattle.
List the last name and first name of every owner who does not live in Seattle.
List the property ID and office number for every property whose square footage is equal to
or less than square feet.
List the office number and address for every property with three bedrooms.
List the property ID for every property with two bedrooms that is managed by
StayWellGeorgetown.
List the property ID for every property with a monthly rent that is between $ and
$
List the property ID for every property managed by StayWellColumbia City whose monthly
rent is less than $
Labor is billed at the rate of $ per hour. List the property ID category number, estimated
hours, and estimated labor cost for every service request. To obtain the estimated labor
cost multiply the estimated hours by Use the column name ESTIMATEDCOST for the
estimated labor cost.
ChatGPT
Here are the SQL statements I created based on the exercise prompts provided, I am unable to use the database nd just need a csv created from my sql entries:
List the owner number, last name, and first name of every property owner.
sql
SELECT OWNERNUMBER, LASTNAME, FIRSTNAME FROM OWNERS;
List the complete PROPERTY table.
sql
SELECT FROM PROPERTY;
List the last name and first name of every owner who lives in Seattle.
sql
SELECT LASTNAME, FIRSTNAME FROM OWNERS WHERE CITY 'Seattle';
List the last name and first name of every owner who does not live in Seattle.
sql
SELECT LASTNAME, FIRSTNAME FROM OWNERS WHERE CITY 'Seattle';
List the property ID and office number for every property whose square footage is equal to or less than square feet.
sql
SELECT PROPERTYID OFFICENUMBER FROM PROPERTY WHERE SQUAREFEET ;
List the office number and address for every property with three bedrooms.
sql
SELECT OFFICENUMBER, ADDRESS FROM PROPERTY WHERE BEDROOMS ;
List the property ID for every property with two bedrooms that is managed by StayWellGeorgetown.
sql
SELECT PROPERTYID FROM PROPERTY WHERE BEDROOMS AND OFFICE 'StayWellGeorgetown';
List the property ID for every property with a monthly rent that is between $ and $
sql
SELECT PROPERTYID FROM PROPERTY WHERE MONTHLYRENT BETWEEN AND ;
List the property ID for every property managed by StayWellColumbia City whose monthly rent is less than $
sql
SELECT PROPERTYID FROM PROPERTY WHERE OFFICE 'StayWellColumbia City' AND MONTHLYRENT ;
List the property ID category number, estimated hours, and estimated labor cost for every service request.
sql
SELECT PROPERTYID CATEGORYNUMBER, ESTIMATEDHOURS, ESTIMATEDHOURS AS ESTIMATEDCOST FROM SERVICEREQUEST;
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
