Data Base Software
Data Base Software
A Data base is a collection of windows stored for a particular purpose or is the highest in
data organization hierarchy that holds all related files or table. The data in a database is
arranged in column and rows.
Is a collection of Programs that enables you to save, modify and extract information
from a database.
Is a set of Computer programs that Control the creation, maintenance and the use of a
database.
Examples of Database Management Software.
Oracle Dbase IV
Ensure security for data in the database by safe guarding it against unauthorized
access and corruption.
1
DATABASE MODELS/TYPES.
Database are classified according to the method used to organize data. The main
database modes are;
Fields or records are arranged in relate groups resembling a family tree with a “Child”
record subordinated to the parent.
This relates or connects data in different files (tables) through the use of a primary key
or a common data element.
It is similar to DPMS but each child record can have more than one parent record.
OBJECTS OF DATABASE.
Tables.
These are fundamental structures in Ms Access that hold the raw data.
Queries.
Forms.
These are used to enter and display records in a data base easily. Like a receipt paper
form.
Reports.
These enable one to preview and print data in meaningful format. Just like Forms
reports can be constructed from various data tables and queries.
2
Pages.
Macros.
This is an automated procedure action in a Computer i.e mean program. It has short
automated procedure with simple commands.
Modules.
Programs which expert users write in a programming language called Access Basic to
perform tailor made functions not generally available.
Field.
This is the entire column that contains similar data items. Or is a Character or logical
combination of characters that represent a data item. For example Name, Sex District
among others. Therefore they are referred to as name field, Sex field etc.
Record.
This is a set of entire data items in a row or is a collection of related fields that represent
a single entity.
This is a title of a particular field or column. They are also referred to as field labels.
Field Type.
This specifies the data that will be stored in the field. Such as numeric fields, Alpha
numeric data field, logical fields, Memo text field and currency.
Tables/ Files.
3
TABLE SHOWING SUMMARIZED FIELD TYPES AND DATA TYPES.
Field Property.
It is a specific Characteristic of a particular field entry. They are specified from the
general tab in the data table structure. They include field characteristic like Comma,
Caption, decimal places etc. These Change depend on the type of data types specified.
FIELD PROPERTY.
Field Size Specifies the maximum length of characters including spaces
for any data item.
Decimal Specifies the decimal places the figure should have.
places
Format Specifies the appearance of that particular item in that
particular field.
4
HOW TO START A DATABASE.
Choose what location you want to save in and give the database a file name.
CREATING TABLES.
Now we need to decide the type of table we want to create. For a Contact management
type of table, you need contact information for your Clients, meeting notes or journals
of meeting etc.
Double Clickk on Create Table using Design view. A dialog box will appear.
Click save button to save the Table. The Save As dialog box will appear and you enter a
desired file name.
Click close to close the table design view. The dialog box will appear prompting you to
enter the primary key. If the primary key is needed press yes if otherwise press no.
Now that your table has been saved it will appear under tables .
5
CREATING TABLE IN DESIGN VIEW.
LOOKUP WIZARD.
When you select lookup wizard for the data type the lookup wizard will automatically
start.
Click on Next.
Enter the values you want to appear as options. Please see the list to the left for values.
Click on Next.
Add the note field and select the data types as Memo.
6
Click finish to get back to the table in Design view.
QUERIES.
A query is a database feature that enables the user to disply specific record as wee as
perform calculations on fields from one or multiple tables.
CREATING A QUERY.
Select create Query in Design view. The show table dialog box will appear from which
you can add a table you wish to create a query.
Click the table from the table/query list and click Add.
The query design grid open. This lets the user to design a query.
Once you have selected the field, click on the X to close the query.
Give the query a name and now your query will appear as an item listed under queries.
Field Row.
Fields from a table or tables to be used are arranged in this row. Each field should
occupy its column.
Sort Row.
By Clicking the down arrow In the sort cell, you can specify the sort order i.e ascending ,
descending or not sort.
7
Criteria Row.
This is where you type conditions statements that will b e used by the query to display
specific records.
Or Row.
Used to specify an alternative condition statement that will be used by the query to
display specific records.
In an empty cell, preferably the immediate last field cell type an expression that includes
a field name of your choice such as Total:
Save the query and run it. The result of the calculation will be displayed.
For each field to be analyzed, click its cell in the Total row and then select any of the
functions as:
Avg: Calculates the mean of all numeric data items in the field column.
Set Criteria and other options then click run to preview the results and save the query.
8
PRINTING A QUERY.
Click the query tab then select the query you want to print.
From the ribbon /File menu, click print, set the printing options then click print or OK
button.
Criteria.
This is a limiting condition such as “Arizona” or “>100”, used in queries and filters to
show a limited set of records.
Criteria Operators.
9
Is Null Records having no Is null (in a Phone Number field finds
entry in the field records with no phone number
entered)
Is Not Null Records having an Is not null (in a Phone Number field
entry in the field finds records with a phone number
entered)
=, <>, >, < Indicates equal, =42 (entries of 42); <>3 (entries
unequal, greater than, other than 3); > 1/1/98 (dates after
less than January 1, 1998); < 10.50 (values less
than 10.50)
*, /, + Multiplies, divides, [Price]*[Quality] (multiply the value
adds, subtracts in the price field by the value in the
Quantity field; [Weight]/12 (divide
the value in the Weight field by 12)
In the database window, in the Queries group, double- click Create Query In Design
view. A new query window and the show Table dialog box appear.
In the show Table dialog box, click the table you want, click Add then click Close to close
the show Table dialog box. The table is added to the table pane of the query window.
Next, you add the table fields you want to the query’s grid. In the table pane, double
click each field name you want to include in the query. As you double click field names,
they appear in the grid.
On the Access toolbar, Click the View button to switch to Datasheet view.
The query runs, and the results will look like a table
To create data from more than one table, the tables must be related .
Steps.
In the database window, in the Queries group, double click Create Query
In design view, a new query window and show Table dialog box appear.
In the Show Table dialog box, double click each table name you want to add. Then close
the show Table dialog box. The tables are added to the Table pane
10
Be sure the tables are joined if they are join lines appear between them.
Double click the field names you want to include to add them to the QBE grid.
Click the view button on the Access toolbar to switch to Datasheet view.
The query displays the record set for your query.
Choose the Table or query that you want to use to make the form.
From the available fields list, select the specified ones by clicking on the field > click on
the single right arrow or you can use all of the fields by clicking on the >> double arrow.
Now you can choose a style or the look for the form. If you are not sure what to choose
pick standard.
You can either enter information on your form or make changes to the design.
Choose “open the Form to view or enter information”.
CREATING A REPORT.
Double click on Create a Report by using wizard.
Check or select the Table or query you are using to create a report.
Select the individual field you would like to use for the report.
11
You can also select all the fields by using the double right arrow.
Once you have selected all the fields for the report click on the Next button to continue.
Here you can pick a report style. Select one and cli8ck on the Next to continue.
Click on finish.
Click on the ribbon/File and print to see a print out of your report.
EXPORT A REPORT.
Here is the option to export the report to Ms word or Ms Excel.
12
GENERATING MAILING LABELS.
Labels are special types of reports used for identification. Examples of Labels are mailing
and floppy disk labels. You create labels the same way you create a report.
TO CREATE LABELS.
Open the databases.
A Macro is set of one or more actions used to perform particular operations such as
opening a form or printing a report. Macros are used to automate database
applications.
TO CREATE A MACRO.
In the lower part, specify arguments for the action, Name argument box.
Add more actions to the macro. Action are executed in the order you list them.
13
14