Professional Documents
Culture Documents
Tutorial 1-6: Database, An Introduction
Tutorial 1-6: Database, An Introduction
Database, an introduction
Create a new database to hold your Christmas shopping list ideas, called Xmas list.
In this database, create and populate a table to hold the people for whom you are buying
presents:
Now create a table of all the places from which you typically buy presents - here is what
it might look like:
Feel free to add your own favourites!
Close down all of the tables that you have created, and enforce referential integrity for the
relationships:
2
Create 3 Forms for the tables as a proper user interface to input your data.
3
CREATING A
RECIPES
DATABASE
Create a new table to hold the different supermarket areas from which you can buy
ingredients. When you have defined the fields, enter data as shown below:
Close this table down, then create another table called Recipe to hold your favourite
recipes (if you haven't got any, make them up!). Here is what this might look like:
4
Here we will add the ingredients for two recipes, but feel free to choose different ones
Finally, create and populate a table to hold the ingredients that you need to buy - this
might look like this:
5
DESIGNING A
VIDEO LIBRARY
DATABASE
Your friend Oscar has contacted you. He is opening a video library, and wants to
computerise his stock and lending records. He has asked you to design a database for
him.
On paper, design a database for Oscar - using these thoughts to help you:
• Each member can rent out more than one video on each
occasion, and can also spend money on other goods (such as
sweets or popcorn). However, you only need to keep track of
which videos are in stock.
• The video store will typically buy many different copies of the
same film, each of which needs to be tracked separately.
If you have time you could try putting your database into practice in Access - or have a
look at one possible answer, as shown below.
6
Source:
https://www.wiseowl.co.uk/
• samuelbak2020@gmail.com