Analysis

Course Content Specification

During the analysis stage of developing a database you need to identify the following requirements:

End User Requirements

The end users are the people who are going to be using the database. The end user requirements are the tasks they expect to do whilst using the database. They will be written from the perspective of the user.

For example:

Functional Requirements

Functional requirements are processes and activities that the system has to perform in order to meet the end user requirements. It will also need to reference the information that the system has to contain to carry out its functions.

For example:

Why are they needed?

The requirements specify the design of the database., they identify the features to be implemented. In a database context you can think of a functional requirement as anything that will require a SQL operation to be carried out.  This allows the developers to evaluate whether the system is fit for purpose after development is complete.

Worked Example - Travel Agency

A travel agency wants to store details of bookings in Scottish holiday resorts. The relational database will allow travel agents to view details of hotels and make bookings for customers.

Four entities are:

Worked Example - End-user requirements

The following are comments made by staff of what they want the database to do:

From the comments the following end-user requirements can be determined:

Travel agency staff should be able to perform searches to display:

Staff should be able to sort results in order of ascending price and calculate:

Worked example - Functional requirements

The relational database will have four tables: Hotel, Resort, Booking and Customer.

Each table will have a suitable primary key and any necessary foreign keys. The following fields are required:

The relational database will use the following: