Write the sql select statement to display the average rent


Please include the questions with your answers. Answer in complete sentences where applicable.

1. A database is a model of a user's view of the world. We must ask ourselves "How well does it fit the mental models of the people who are going to use the system?" Discuss why it's important that the model fits the user requirements, even if the developer "knows better."

2. Write the SQL SELECT statement to display the property type, rooms, and rent sorted by the Type.

Use the following PROPERTY table to answer the question:

PropertyID

Type

Rooms

Rent

306

Apt

3

550

308

House

6

1000

325

Apt

4

625

397

Apt

3

550

412

House

7

1250

441

Apt

2

475

3. Write the SQL SELECT statement to display the average rent of the properties.

Use the following PROPERTY table to answer the question:

PropertyID

Type

Rooms

Rent

306

Apt

3

550

308

House

6

1000

325

Apt

4

625

397

Apt

3

550

412

House

7

1250

441

Apt

2

475

4. What is normalization? Explain why it is important.

5. List and describe the 4 components of a database system.

6. Give an example of a data constraint and an example of a business rule. Be sure to label which is which so I can tell you know the difference.

7. Explain the difference between an entity class and an entity instance, and give an example other than those used in the text or the lectures.

8. Define the term "weak entity" and give an example other than those used in the text.

9. Define supertype, subtype and discriminator.

10. Explain the difference between and inclusive subtype relationship and an exclusive subtype relationship.

11. Using Microsoft Visio 2013 (available through DreamSpark) draw an IE Crow's Foot E-R diagram for the entities DEPARTMENT and EMPLOYEE. A DEPARTMENT may have more than one EMPLOYEE, but an EMPLOYEE is only assigned to one DEPARTMENT. Assume that a DEPARTMENT does not need to have an EMPLOYEE, but that every EMPLOYEE is assigned to a DEPARTMENT. Include at least three appropriate identifiers and attributes for each entity.

12. Explain the following crow's foot E-R diagram. Be sure to include entities, keys, attributes, cardinality. What is the special type of entity represented by COMMISSION_RATE?

2018_E-R diagram.jpg

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Write the sql select statement to display the average rent
Reference No:- TGS01484259

Expected delivery within 24 Hours