Documente Academic
Documente Profesional
Documente Cultură
In this unit I am going to create a database to store a given set of data and extract
useful information. The dataset I have been given is called tickets and is in a CVS file
format.
As you can see this data is difficult to interpret. As a result of this imported it into
Microsoft Excel so it was easier to read and analyze.
The next step was to look at the row headings and decide how I can split them up
into different tables. A table stores information on an object.
These are the row headings from the dataset
Adam Bullock – 8035 Page |1
19319
Order Number Temp
Title
First Name
Last Name
Address Line 1
Town
County
Post code
Card Type
Card Number
Expiry Date
Start Date
I have created a data dictionary to help me sort out which attributes/field names go
with which table/entity. I have also defined the type of data, field length and
validation(s).
I have created this data dictionary so that if i was going to get someone else to
create my database for me they would be able to do the entity tables with only this
one sheet.
o Data types - are there to help the database programme understand what
types of it is dealing with.
o Field length – is there to limit the number of characters that the user can
enter into the data field.
o Validation – is there to prevent the wrong data from being entered.
Validation type; Required – this means that the field that the user in
must be filled out with the correct information.
Validation type; Lookup wizard – is so that the user can choose from
a preset range of data, so by choosing one of the given options they
are not entering incorrect data. E.g. the ‘title’ of a person; mr, mrs,
etc.
Validation type; Validation text – is what is displayed if the user
enters the wrong information.
Validation type; Input mask – to prevent the wrong data from being
entered. E.g a post code.
Symbol Description
0 Digit 0-9 (required)
9 Digit 0-9 (optional)
# Digit or spaces
L Letter A-Z(required)
? Letter A-Z (optional)
> Make following characters uppercase
A Letter or digit (required)
A Letter or digit (optional)
& Any character or space (required)
C Any character or space (optional)
< Make following characters lowercase
Order Customer
This is a one too many relationship. Below are the screenshot showing me setting up
the relationship.
This screenshot shows the tickets information in Excel, I had to copy and paste the
information into two different tables, customer and order. This screen shot shows
the customer table, all the information relevant to the customer, name and address
etc.
This screenshot shows the order table for my tickets data. All of the information for
the performance is listed here, performance name, time etc.