Question: 1 . Create a view named SMALL _ PROPERTY. It consists of the property ID , office number, bedrooms, floor, monthly rent, and owner number
Create a view named SMALLPROPERTY. It consists of the property ID office number, bedrooms, floor, monthly rent, and owner number for every property whose square footage is less than square feet.
a Write and execute the CREATE VIEW command to create the SMALLPROPERTY view.
b Write and execute a query to retrieve the office number, property ID and monthly rent for every property in the SMALLPROPERTY view with a monthly rent of $ or more.
c Write and execute the query that the DBMS actually executes.
d Does updating the database through this view create any problems? If so what are they? If not, why not?
Click or tap here to enter text.
Create a view named PROPERTYOWNERS. It consists of the property ID office number, square footage, bedrooms, floors, monthly rent, and owners last name for every property in which the number of bedrooms is three.
a Write and execute the CREATE VIEW command to create the PROPERTYOWNERS view.
b Write and execute the command to retrieve the property ID office number, monthly rent, square footage, and owners last name for every property in the PROPERTYOWNERS view with a monthly rent of less than $
c Write and execute the query that the DBMS actually executes.
d Does updating the database through this view create any problems? If so what are they? If not, why not?
Click or tap here to enter text.
Create a view named MONTHLYRENTS. It consists of two columns: the first is the number of bedrooms, and the second is the average monthly rent for all properties in the PROPERTY table that have that number of bedrooms. Use AVERAGERENT as the column name for the average monthly rent. Group and order the rows by number of bedrooms.
a Write and execute the CREATE VIEW command to create the MONTHLYRENTS view.
b Write and execute the command to retrieve the number of bedrooms and average monthly rent for each row for which the average monthly rent is greater than $
c Write and execute the query that the DBMS actually executes.
d Does updating the database through this view create any problems? If so what are they? If not, why not?
Click or tap here to enter text.
Create the following indexes:
a Create an index named OWNERINDEX on the STATE column in the OWNER table.
b Create an index named OWNERINDEX on the LASTNAME column in the OWNER table.
c Create an index named OWNERINDEX on the STATE and CITY columns in the OWNER table. List the states in descending order.
Delete the OWNERINDEX index from the OWNER table.
Add the OWNERNUM column as a foreign key in the PROPERTY table.
Ensure that the only legal values for the BDRMS column in the PROPERTY table are or
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
