Question: bTask 1 : Create a table named SUMMER _ SCHOOL _ RENTALS. The table has the same structure as the PROPERTY table shown on Page

bTask 1: Create a table named SUMMER_SCHOOL_RENTALS. The table has the same structure as the PROPERTY table shown on Page 1, except the PROPERTY_ID and OFFICE_NUM columns should use the NUMERIC data type, there should be no BDRMS column, and the MONTHLY_RENT column should be changed to WEEKLY_RENT.
To see the structure of the PROPERTY table, use the DESCRIBE PROPERTY; command.
Execute the command to describe the layout and characteristics of the SUMMER_SCHOOL_RENTALS table.
Add the following information to a single record in the SUMMER_SCHOOL_RENTALS table:
PROPERTY_ID : 13,
OFFICE_NUM : 1,
ADDRESS : 5867 Goodwin Ave,
SQR_FT : 1,650,
BDRMS : 2,
FLOORS : 1,
WEEKLY_RENT : 400,
OWNER_NUM : CO103
MySQL should return an error that a column does not exist. Determine which column in the above list is not in the SUMMER_SCHOOL_RENTALS and remove it. Run the query again to add the record to the table.
Task 2: Determine which column in the above list is not in the SUMMER_SCHOOL_RENTALS and remove it. Run the query again to add the record to the table.
Task 3: Delete the SUMMER_SCHOOL_RENTALS table.
Run tests for task 4
Task 4: Check that the StayWell database is back to its starting point. The StayWell database should have the six tables shown on page 1 of this lab.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!