Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

TUTORIAL 1-6

Database, an introduction

MS-Access and Libre Base


https://www.libreoffice.org/download/download
CREATE A
CHRISTMAS
LIST DATABASE

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:

Here the PersonID field will be the primary key

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!

Create a third table which allows you to enter present ideas:

Hopefully your present ideas are more imaginative than this

Close down all of the tables that you have created, and enforce referential integrity for the
relationships:

This is what your relationship diagram should look like

2
Create 3 Forms for the tables as a proper user interface to input your data.

Close down your database!

3
CREATING A
RECIPES
DATABASE

Create a new database called Recipes.

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:

Your table should contain two fields, as shown above

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:

Note that in this case Quantity will be a text field

Apply referential integrity to your relationships:

This is what the final diagram should look like

Create 3 input Forms for your tables as a proper database.

Close your database down when you have finished.

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/

Submit your file


Please submit your java files and screen shots of your result to the
following email addresses on the 22nd of October 2021.

• samuelbak2020@gmail.com

• Title: MS Access Libre Tutorial 1 [ID, Name]

You might also like