SUBJECT: DATA PROCESSING
CLASS: SS 1
DATE:
TERM: 3rd TERM
REFERENCES
WEEK EIGHT
TOPIC: DATABASE MANAGEMENT II
CONTENT
Database packages are used to design a database in a computer. Example of a common database package is Microsoft Access. MS Access is a Relational Database Management System used to create and modify databases.
USING MS- ACCESS FOR DATABASE
To create a database on the computer with MS Access
Load MS Access: do the following;
Creating Database
Files are created as tables in the database
Creating a file
In the Save As dialog box, type a desired table name (e.g. Student Table) in the Table Name text box and click ok.
Tables in database on a computer are composed of rows and columns. A table in MS Access is organized into rows and columns like the picture screen shown below.
A row contains records or diverse fields. The rows specify the number of records in the table. For example, in the picture-screen above, there are six records in the student table.
A column usually represents a field in a database table. It contains specify the type of information. For example, in the picture screen above, there are three fields (data fields), REG. No., Surname, and first name.
EVALUATION
Create Fields with Data Types
Fields are assigned field names relevant to the information they keep. Field names are assigned data types which determine the kind of data they accept as input. For example in MS Access table above, Surname are alphabetic, the fields will not accept numeric (numbers) inputs 10 or 500 as surname. To set data type for field in MS Access, follow the steps below;
For example, using the above picture screen, the field name ID Number will be assigned Number data type since the ID Numbers will be numeric. In the same way, TEXT data type will be assigned to Surname and First name.
Unique Identifier
A table contains a unique identifier i.e. a KEY. In MS Access, a default primary key is usually specified for the first field. To set another field of your choice as primary key, right click on the first cell and select Primary Key.
Note: The symbol of a key should appear beside the field, after setting that field as a unique identifier. If it does not appear repeat previous steps.
Creating Database
Generally, creating database using any DBMS entails the following basic steps:
Define the Database Structure
The database structure specifies the type of database organization that should be used. If the relational form is selected, the database structure will include RDBMS, structure of table, number of rows, number of columns, the key, and relationship of the database etc.
Specify Field Type
When a database is being created, all fields are set to accept a particular type of input by specifying a field type. A field type is also known as a Data type. The essence of a data type is to prevent a wrong input from being stored in a database (i.e. database integrity). Usually the name of a data type varies with DBMS but portrays a general meaning. These include;
GENERAL EVALUATION
READING ASSIGNMENT
Data Processing for Senior Secondary Education by HiiT Plc. Chapter Two, pages 58 - 63
WEEKEND ASSIGNMENT
THEORY
© Lesson Notes All Rights Reserved 2023