Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Databases questions