Use SQL to complete the following exercises. Provide SQL screenshots of the results of both questions. 1. Create a table named SUMMER_SCHOOL_RENTALS. The table has the same structure as the PROPERTY table shown in Figure 3-48 except the PROPERTY_ID and OFFICE_ NUMBER columns should use the NUMBER data type and the MONTHLY_RENT column should be changed to WEEKLY_RENT. Execute the command to describe the layout and characteristics of the SUMMER_SCHOOL_RENTALS table. 2. Add the following row to the SUMMER_SCHOOL_RENTALS table: property ID: 13; office ID: 1; address: 5867 Goodwin Ave; square feet: 1,650; bedrooms: 2; floors 1; weekly rent: 400; owner number: CO103.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 5HOA: Access path A database table is composed of records and fields hold data. Data is stored in records....
icon
Related questions
Question

Use SQL to complete the following exercises.

Provide SQL screenshots of the results of both questions.

1. Create a table named SUMMER_SCHOOL_RENTALS. The table has the same structure as the PROPERTY table shown in Figure 3-48 except the PROPERTY_ID and OFFICE_ NUMBER columns should use the NUMBER data type and the MONTHLY_RENT column should be changed to WEEKLY_RENT. Execute the command to describe the layout and characteristics of the SUMMER_SCHOOL_RENTALS table.

2. Add the following row to the SUMMER_SCHOOL_RENTALS table: property ID: 13; office ID: 1; address: 5867 Goodwin Ave; square feet: 1,650; bedrooms: 2; floors 1; weekly rent: 400; owner number: CO103.

PROPERTY
COLUMN
PROPERTY_ID
OFFICE_NUM
ADDRESS
SQR_FT
BDRMS
FLOORS
MONTHLY RENT
TYPE
OWNER_NUM
DECIMAL
DECIMAL
CHAR
LENGTH DECIMAL PLACES NULLS ALLOWED
2
CHAR
2
25
DECIMAL 5
DECIMAL
2
DECIMAL
DECIMAL
2
6
0
0
0
0
0
2
No
DESCRIPTION
Property ID (primary key)
Number of office managing the property
Property address
Property size in square feet
Number of bedrooms of the property
Number of floors
5
FIGURE 3-48 Table layouts for the StayWell Student Accommodation database
Monthly property rent
Number of property owner
Transcribed Image Text:PROPERTY COLUMN PROPERTY_ID OFFICE_NUM ADDRESS SQR_FT BDRMS FLOORS MONTHLY RENT TYPE OWNER_NUM DECIMAL DECIMAL CHAR LENGTH DECIMAL PLACES NULLS ALLOWED 2 CHAR 2 25 DECIMAL 5 DECIMAL 2 DECIMAL DECIMAL 2 6 0 0 0 0 0 2 No DESCRIPTION Property ID (primary key) Number of office managing the property Property address Property size in square feet Number of bedrooms of the property Number of floors 5 FIGURE 3-48 Table layouts for the StayWell Student Accommodation database Monthly property rent Number of property owner
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage