Databases Design and Management Assignment
Databases Design and Management Assignment
Scenario
Comfort Homes Letting and Management is a property management company based in Nairobi, United
Kingdom. They manage properties for owners. An owner will have one or more portfolios of properties,
which will consist of one or more properties. Properties are defined as being of a particular type such as
residential house, residential flat or commercial property.
A particular property will be rented by a tenant. The terms of that rental are defined as a tenancy. Tenant are
defined by type (‘Private’, ’Business’, ’Government’, ’Other’).
As well as managing the tenancies of properties Comfort Homes Letting and Management maintain the
property by carrying out repairs when they are needed.
A property repair will involve one or more members of staff, and can involve one or more parts.
The system should be capable of storing all the information needed for Comfort Homes Letting and
Management to carry out their business.
Task 1 – 10 Marks
1) An entity relationship model for the proposed database system for Comfort Homes Letting and
Management.
2) A data dictionary for your proposed system.
Task 2 – 20 Marks
1. Create the tables in SQL and show the CREATE scripts as running in the programming
environment.
2. Using SQL enter Data on all the owners, portfolios and properties. Give a listing of this.
3. Using SQL enter Data for customers and tenancies. Give a listing of this.
4. Using SQL enter Data on property repairs including staff involved and parts used.
5. Write a query that selects all the portfolios and properties for a particular owner.
6. Write a query that selects the tenants and their tenancy dates.
7. Write a query that shows all parts involved in the repair of a particular property.
8. Write a query that shows all the tenants for a particular owner.