Learning Outcomes:: 4.7.1. Explain What A Database Is and How It Is Organised and Operated
Learning Outcomes:: 4.7.1. Explain What A Database Is and How It Is Organised and Operated
spreadsheet. So if this is the first time you are learning about databases you would be well
advised to read over the lesson first, away from the computer, and perhaps highlight the
text to ease understanding.
Learning Outcomes :
4.7.2. Create a table; define and modify fields and their properties; enter and edit data in a
table.
4.7.3. Create, modify and run queries to retrieve specific information from a database.
4.7.4. Create a form to enter, modify, and delete records and data in records.
Advantages of a database
1. Large numbers of data can be entered, stored, edited and retrieved without much
effort.
3. Data can be sorted and filtered to find specific data that falls with certain criteria
4. Various data can be combined
6. Reports can be created using certain criteria: Reports look professional and accurate
Planning a database
A database should be planned carefully, ask the following questions in your database
planning;
Data vs Information
Data is raw unprocessed facts while information is processed data. Data on its own has
meaning but becomes information when it is processed or interpreted. Information is the
desired output of a database.
Quiz
i) Bank
ii) Airline
iii) Hospital
iv) Government
Database Objects
Tables
Are found of any database. It is a collection of related data divided into rows(records) and
columns(fields). There can be more than one table in a database. In a table one specific row
represent a record. Each column contains a specific field.
Queries
Used to locate specific information in a table. Queries are used to ask specific questions and
perform calculations, for example the number of books written by a specific author.
Forms
Data Type
A data type determines what kind of data can be entered and stored in a field. It also
determines what can be done with the field. e.g. number, text, AutoNumber etc. The table
below sumarizes some of the data types used in database.
Field Size
Determines how many characters can be entered in a field, including spaces, If fro example,
the field size for a Surname field is 12 and you enter Haihambo Ndapandula only Haihambo
Ndap will be displayed. Too small field size can cause data loss and too big data size can
waste space and slow the database.
Primary Key
A field that uniquely identifies a record/row in a table. It contains unique data.It is
recommended that each table contain a primary key. However sometimes it is not necessary
to assign a primary key.
4.7.2. Create a new database and tables; define and modify fields and their properties;
enter and edit data in a table.
Create a New Database
3. Sect the location to store the database on the right side of the window.
5. Click Create
2. On the left side of the window, in the Navigation Pane, click the drop down arrow.
3. Select All Access Objects. This will display all current tables, queries, froms and reports
in the database.
2. On the Home tab, in the views group, click the View drop-down arrow. A list of all
avaialable views will be displayed.
Create a table
1. Select Create tab and click Table Design button, A new table will be displayed in Design
View(Table tools)
2. Save the table. Select the Save button, on the Quick Access toolbar.
5. Select OK
A validation rule ensures that a specific data is entered in a specific field. E.g. If today's date
must appear in a field then only today's date will be accepted in such a field. In Queries they
are known as criteria and are set up accordingly to validate the data entered in a field, when
a wrong data is entered an error message will be displayed. Below table summarises some
of the validation rules.
In tables validation rule is set in Design view of the table as shown below;
Create a Query