Database Software
Database Software
Database software is a program used to manage data that can be organized into lists of related
information.
Examples of such information includes; customer information, product information’s, vendors
information, projects and sales information.
Examples of database management system (DBMS) software programs include Microsoft
Access, FileMaker Pro, Lotus Approach, dBase, SQL server, MySQL and Paradox
Functions of a database management software
i. Allow the user to add or delete records
ii. Update or modify existing records
iii. Organize data for easy access, retrieval and manipulation of records
iv. Acts as an interface between the database and other applications programs
v. Ensure security for data in the database by safe guarding it against unauthorized access.
vi. Keep statistics of data items in the database
Database concepts
A database is a collection of structured and related items organised so as to provide consistent
and controlled access to items.
To create and manage a database, a database management system (DBMS) software is used.
File Processing versus Database
Usually there are two approaches to store and manage data: file processing or database. In a
typical file processing system, each department or area within an organization has its own set of
files that are often designed specifically for their particular applications and the records in one
file may not relate to the records in any other file. By using the database approach, all data is
centralized in one place such that many programs and users share the data in the database.
Database models
Databases can be classified according to the methods used to organise data. The main database
models (categories) include:
i. flat file iii hierarchical model
ii. network model iv relational model
Flat files
In a flat file model, the database holds only one set of data and is not any different from the
manual files.
For example a class mark sheet may consist of performance results for every student.
Hierarchical model
In this model data items are arranged in a tree form. This model is rarely used in modern
database systems.
Network model
In this type of organisation, links are used to express the relationship between different data
items forming a network of items.
Relational database model
In this type of organisation, related data items are stored together in structures called relations or
tables. Relationship can be created between tables such that a record or records from one table
relates to another table
Field properties
Field properties specify finer details related to fields and table entries. Field properties depend on
the type of field selected.
A number of field properties include;
i. field size: this allows a user to set the number of characters in the field
ii. Format: determines how information appears on the screen.
iii. Decimal places: for number and currency fields, the number of decimal places can be
specified.
iv. Input mask: this automatically formats the field entry into a specified format.
v. caption: this is a more descriptive name for a field to be used in the table or form
vi. Default value: this is the value that appears automatically in the datasheet or form if
nothing is entered by the user to change it.
vii. Validation rule: this is a logical expression that restricts the values to be entered in the
field.
viii. Validation text: this is a message that appears once a validation rule is violated.
ix. Indexed: this facilitates organisation of records for easy search. An example of an index
is a primary key.
Primary key
An attribute selected to act as the unique identifier for each occurrence of an entity or
relationship.
A set of one or more columns in a database table whose values, in combination, are required to
be unique within the table.
Advantages of using a primary key in a database include;
i. It uniquely identifies each record in the database.
ii. No duplicate values will be allowed in a database.
iii. It enables the database to ensure data integrity for each record.
iv. It displays the data in order of the primary key as given.
v. It works quickly depending on the primary key for easy retrieval and storage.