Define The Query As One of The Database Objects
Define The Query As One of The Database Objects
LESSON 54
DATABASE OBJECT-QUERY
For example, you can retrieve a student’s name and address from the
database.
187
You can create new Queries using one of the methods.
Create query in Design View.
Create query by using wizard.
188
CREATING A RELATIONSHIP
TO RUN A QUERY
189
Another example, you can type in the date of purchase of vitamin C for the
month of August.
Only the information on vitamin C for the month of August which is specified
in the perimeter will be displayed.
LESSON 55
DATABASE OBJECT-FORM
190
A Form is an organised and formatted view of selected fields from selected
Tables or Queries.
By using Table, you need to scroll down to fill in the new data. This data
entry process will take time.
However, when From is used, it is easier as you need to click on the new
record button to fill in the new data.
191
When you add new data into Forms, you are automatically also adding the
data into the Table.
When you modify data on Forms, you are automatically also modi fying the
data in the Table.
CREATING A FORM IN
DESIGN VIEW
- See Demonstrations From the CD
CREATING A FORM BY
USING WIZARD
- See Demonstrations From the CD
192
EXTENSION : MAIN FORM AND SUBFORM
Sometimes, you want to get the information from two Tables to design a
Form.
For example, you want to design an invoice form to contain customer and
product details.
In this situation, you need a main form and a subform. A main form contains
customer information.
193
The invoice form gets information from two Tables that are Cust omer Table
and Product Table.
Product Tablegives data for the subform. It contains specific details such as
ProductID, Details, Quantity and Price purchased by the customer.
194
By using mail form and subform, you can view the information together. The
main form and subform appear in the same window.
LESSON 56
DATABASE OBJECT-REPORT
195
CREATING A REPORT IN DESIGN VIEW
- See Demonstrations From the CD
The purpose of publishing your Reports on the Web is to allow people from
multiple locations in your organisation to view your Report.
For example, if your company sells many items, the inventory report has to
be updated weekly. You could produce inventory Report and export that
Report as an HTML file. The Report has to be converted to HTML format
before being published.
This file is transferred to the Web Server and can be accessed by all staffs in
the organisation.
196
LESSON 57
DATA MANIPULATION
UPDATING RECORDS
The Update operation is used for changing data in a database Table.
INSERTING RECORDS
The Insert operation is used for adding records to a database Table.
DELETING RECORDS
The Delete operation is used for removing records from a database Table.
RETRIEVING RECORDS
The Retrieve operation is used for retrieving records from a database Table.
SORTING RECORDS
The Sort operation is used for sorting records in a records in a database
Table.
197
FILTERING RECORDS
The Filter operation is used for filtering records from a database table.
Instead of displaying all the records in a Table, you can use a filter to display
only those records that you want to see or edit.
SEARCHING RECORDS
The Search operation is used for finding record from a database table.
You can use the Find function in Microsoft Access to search for the records.
You can use the “Find” feature to locate one or more records to find specific
data.
The transferring of data from a format to another is called the data export.
For example, in Microsoft Access Table, Queries, Forms and Reports can be
exported to a spreadsheet format.
198
Sometimes, you will come across situations where your data is stored in
Microsoft Access but you need to move or copy it to Microsoft Excel.
For example, you might want to give your report to a group of users who
like to view the data in the form of a chart or graph.
You might also want to manipulate your data using line chart where you can
see the shipping date clearer.
LESSON 58
PHASES OF SYSTEM DEVELOPMENT
These phases describe the processes that system developers carry out in
order to develop a database program.
Design Phase
Based on the needs of target users, the system developers will design an
Entity Relationship Diagram (ERD). This phase is known as the Design
Phase.
199
Implementation Phase
Implementation Phase is the phase where system developers create
database using database software.
Testing Phase
The system will be tested by the target users in the Testing Phase.If there is
any error detected, the system developers will fix the error.
Documentation Phase
System developers will produce the documents for the program during the
Documentation Phase.
Maintenance Phase
The system developers continue to provide support during the Maintenance
Phase. They monitor the system performance and make changes when
needed.
Work as a group
When you want to develop an information system, you must work as a
group. All group members must work together to complete tasks like data
entry and analysis.
200
LESSON 59
ANALYSIS PHASE
By doing this, the system developers can define the purpose of the system.
It would help system developers set the focus of the system.
PROBLEM ANALYSIS
During the Analysis Phase, the system developers will interview the target
users to find out their needs.
The target users require a new system that is a School Resource System to
register and catalogue their books.
201
In the School Resource System, the system developers need to identify the
input, process and output for the system.
The system developers identify the process for all the system. All new books
purchased by the School Resource Centre would have all their data keyed
into the School Resource System.
The system developers identify the output for the system. For example, the
books which have been keyed in will be printed out as document references
in the School Resource Centre.
By doing this problem analysis, the system developers can come up with the
design of the system.
EXTENSION : STANDARDISATION
Standardisation is a set of rules and procedures that system developers
require target users to accept and follow.
For example, system developers need standardisation for the coding of stock
name. In Analysis Phase, system developers need to understand the terms
used by target users in order to set a standardisation for input, process and
output.
If the stock code is set to S00001, the target user must follow the standard
by using the prefix S for the rest of the stock code. For example S00002,
S00003 and so on.
202
LESSON 60
DESIGN PHASE
DESIGN PHASE
The Design Phase is the second phase in system development. It refers to
the planning of the system design.
Determine field
You need to ensure Tables contain the necessary data.
You need to determine what fields to include and the suitable data type
format for those fields.
Author Table consists of AuthorID and AuthorName.
Book Table consists of BookID, BookTitle and BookPrice.
Category Table consists of CategoryID and CategoryName.
Publisher Table consists of PublisherID and PublisherName.
203
These are the technical plans we designed during the Design Phase.
In the Design Phase, the system developers will seek to provide input
interface and output interface.
System developers will provide an input interface where the user can do
data entry.
The user can also retrieve information from a database using an output
interface.
204
In the School Resource System, system developers can use the Entity
Relationship Diagram to describe all Tables and their fields.
205
206
EXTENSION : MOCKUP
Users must give their approval on all inputs and outputs before system
developers proceed with database design. A mockup ensures input and
output designs meet the needs of users.
207
LESSON 61
IMPLEMENTATION PHASE
CREATING DATABASE
CREATING TABLES
You can use Design View to create tables to store data. You are to create
four tables: Author, Book, Publisher and Category for the School Resource
System.
208
ASSIGNING TABLE RELATIONSHIP
CREATING QUERIES
- See Demonstrations From the CD.
CREATING FORMS
You can use Forms to perform data entry and retrieve related data.
CREATING REPORTS
You can use Reports to summaries information from the database.You can
create new Report using wizard.
You can use Reports to retrieve information from the database using Tabl e
or Query.
One-To-One
For example, each member has only one address record.
209
One-To-Many
For example, each book has only one category. Each Category has many
books.
LESSON 62
TESTING PHASE
210
DATA ENTRY IN TESTING PHASE
Before testing the database, data must be entered into the Tables. Enter
data for four Tables : Author, Book, Category and Publisher.
For example, the salary a user keyed in should be between 900 and 1500.
The message will pop up if the salary is over 1500.
211
LESSON 63
DOCUMENTATION PHASE
DOCUMENTATION
Documentation is very important when the system requires changes in the
future. Documentation tells new system developers what was done in the
program.
User Manual
Technical Documentation
212
Technical Documentation is used by system
developers as a reference.
In Documentation
Phase, User Manual and
Technical Documentation
are found in a folio.
You need to gather all the documents from the system development phases
into a
folio.
All documentation must be ready by the end the system development. The
system developers should ensure that all documentation is complete and
accurate.
213
EXTENSION : CREATING A HELP FILE
A Help File is a documentation file that brings together help information of
all the database objects in a project.
This file is a guideline for the user when the user needs
any help in operating the program.
LESSON 64
MAINTENANCE PHASE
214
System maintenance involves checking, changing
and enhancing to improve its performance.
CORRECTIVE MAINTENANCE
Corrective Maintenance is changing maintenance carried out to repair an
error in system design.
This maintenance is used when errors are detected and need to be rectified.
For example, in the School Resource System, you need to add the
International Standard Book Number (ISBN) field.
PERFECTIVE MAINTENANCE
Perfective Maintenance is a system maintenance performed to improve a
computer program.
For example, in the School Resource System, you can modify the layout of
the Book Form by changing the font colour, type, size and adding "Book
Form" title.
215
PREVENTIVE MAINTENANCE
Preventive Maintenance is a
maintenance aimed at the
prevention of future breakdowns and
failures.
For example, in the School Resource System, you want to assign a password
before a user accesses the database.
Backup of database should be done regularly. In this way, you can still
access to your backup if anything goes wrong.
216
LESSON 65
DEVELOP A DATABASE PROJECT
PROJECT WORK
- See example From the CD.
LESSON 66
WEB-BASED APPLICATIONS
217
GLOBAL RESOURCE CENTRE
Global Resource Center is a Web-
based information system used in
developing human resources for
health.
Global Resource Center offers a global library of human resources for health,
focusing on developing countries.
For example, healthcare personnel can store their individual details in this
database. This database can be accessed by a country that needs the
healthcare support.
By using this system, countries with health needs can be met. This resources
center is managed by Capacity Project and USAID-funded global project.
For example, from the Current Disaster Events column, you can be informed
of the flood that happened in China.
This alerts people of the surrounding regions to evacuate and move to safer
places.
People living in Vietnam and Laos will take necessary precautions when
floods happen in China.
218
By using this system, it helps to coordinate the international responses
during the disaster.
For example, data collected on HIV statistics is analysed and it was found
that millions of death were caused by AIDS.
219