Professional Documents
Culture Documents
Lecture 11
Lecture 11
Lecture 11
11.1. Introduction
Every modern-day business has data which requires some organized method or mechanism for
maintaining and retrieving the data. Organizations may be interested in keeping data about
entities such as employee, departments, purchases, supplies e.t.c. Related data is kept in tabular
format in tables called relations. Such tables have rows and columns. Each column of a table is
referred to as a field. Each row of the table is referred to as a record. A record contains
information about a given entity. A database is therefore a collection of one or more related
tables created using database management system software. Examples of database management
system software are Microsoft ®Access, Microsoft ® SQL server, Oracle, DB2 etc.
11.4. Terminologies
▪
Data: Raw facts, text, graphics, images, sound, video segments
▪
Database: A collection of one or more related tables created
using database management system software
▪
Information: Data processed to be useful in decision making.
▪
Primary key: A field used to identify a record uniquely.
▪
Foreign key: A field used to link two tables.
Functions of DMBS
▪
Database creation (storing data in a defined database).
▪
Retrieval of data (query and reporting).
▪
Update of data (Changing the contents of the database).
Example: Consider imaginary company, Bidii enterprises limited.
Bidii enterprises limited tracks records of its stock of products. These products are received from
various suppliers and their payments made to these suppliers. These products are usually sent to
different departments within the company after payments have been made. This is the work of
the store keeper.
Database design
To create a database we must have a plan. The process of coming up with this plan is called
database. Using the above case we can begin to design. We can now identify the following
business processes
▪
Products are received from different suppliers
▪
Payments are made for products
▪
Products are sent to departments after payments.
Home ribbon: Consists of views, clipboard, Font, rich text, records, sort & filter
and find categories.
External data ribbon: Consists of import, export, collect data and sharePoint lists
categories.
Procedure
▪
Click featuring under template categories
The next important thing is to link these four tables. This is a relational database.
11.9. Creating relationships
Step 1: Displaying tables in the relationship
window Close all the tables but NOT the
database.
▪
Click Database tools
▪
Click Relationships in the show/hide category
▪
The show table dialog appear
▪
Click tables tab
▪
Click product table then click add.
▪
Proceed until all the tables have been added in the relationship
window. Click close
Step 2: Linking the tables using foreign keys
▪
Click the primary in the parent table then drag and drop it on its related
▪
counterpart.
Edit relationship dialog appear.
▪
Enforce referential integrity then click create
▪
Proceed this way until all the tables are connected.
11.10. Populating tables
You can open the table in datasheet view in order to enter data or create forms to
enter data. To open a table in datasheet view, right click the table name and select
open. The table opens in data sheet view. Click and enter data. To move from one
cell to the next, click and type or press tab key to move to the required cell.
We can also create a form to enter data in the
above table To do this, click create button.
▪
In the forms category, click form design.
▪
The form opens in the design view.
▪
Click design tab and then in the tools category, click add existing
button. Click the cross button next to field list pane.
▪
Click and drag each field then drop in the detail section as
shown below.
To enter data using the form you need to open the form in form view. In the
view category, Click drop down arrow below view and select form view.
To move to next, previous or new record, use navigation bar at the bottom of the
form.
LecturerNo Text
FirstName Text
Lastname Text
Course
CourseNo Text
CourseName Text
LecturerNo Text
11.12. Summary
In this lesson we have learnt how to design a simple database given a case, how to launch
Microsoft access and create database, tables and forms to enter data.