Week 1 DB
Week 1 DB
Week 1 DB
TOPIC:
DATABASE MANAGEMENT SYSTEM (Access / MySQL)
WEEK1 YEAR 11
2 Databases II (Mysql)
3 Boolean logic
4 Boolean logic II
5 File handling
6 Presentation Packages
7 Spreadsheet
8 Spreadsheet II
9 Revision
10 Examination
11
Objective
In this lesson, you will:
Describe a database
Define database key terms (table, record, field, primary key, foreign key)
Describe a flat file database
Describe a relational database
Define a single-table database from given data storage requirements
• Including:
– fields
– records
– validation
Suggest suitable basic data types
Understand the purpose of a primary key and identify a suitable primary key for a given
database table
Introduction
File Name: is used to identify the name of a table. It can be alphabet or number.
A Field:
A field is the horizontal record in a table. It is a label that describes the record in the table.
Data Types:
Data type are use to describe the types of data that are to enter in the field
Types of data type:
- Auto-number
- Text
- Number
- Memo
- Date/time
- Currency
- Yes/No
- OLE object (Object Linking and Embedding)
- Attachment etc.
Character:
Character is the smallest unit of data in a table is either an alphabet or numbers that enter to
the cell.
Description:
This is used to identify the particular location of something in a table.
TYPE OF DATABASE MANAGEMENT SYSTEM (DBMS)
(1)MS Access
(2)Fox base
(3)Fox pro
(4)Database version ii, iii,& iv
(5)Oracle
(6)MySQL
USES OF MS ACCESS
(1)It’s used for personal information
(2)It used for keeping customer record in the bank
(3)It used for pay roll of a company.
(4)It help to store information for reference, reporting and analysis
(5)It also helps to analyze large amount of information and manage related data more efficiently than MS
access.
FILE CONCEPT IN MS ACCESS
(1)Design view
(2)Datasheet view
(3)Relationship
(4)Query
(5)Form
(6)Report
DESIGN VIEW:
This is used to enter data first in table view and also used to editing data field in the
table
DATASHEET VIEW:
Is used to view or transfer all the field record in design view into the table view.
QUERY:
Query is used to accessed and co-ordinate data and display in a table.
It can access a single table or multiple tables’ e.g. to access customer who live in Nigeria
or U. K.
DESIGN QUERY:
Query Design has two major sections to display;
(1) It displays the table that is used for the query with the available fields.
(2) It displays those fields that have been selected for used in the query output.
FORM:
A form is used to specify the fields from the customer & account table to make
simple calculation and display in the table output.
REPORT:
The report is similar to query, it display data from one or more tables and display
the record. The report is printed out on paper.
Create the second table: Name “Next of kin Details” with the following information:
Person ID - Number
Next of kin Name - text
Gender - text
Marital Status - text
Date of Birth - date & time
Age - Number
Person - Brother/Sister
Contact Address - text
Telephone No - Memo
E-mail - text
Picture - attachment
Create the third table: “Account Table” with the following field:
Customer ID - Number
Account Name - text
Account Number - Number
Account type - text
Date Opened - Date & time
Branch - text
Balance - Currency
Create the second table: “Workers Allowance” with the following field:
Workers ID
Basic Salary - Currency
Transport Allow - Currency
House Allow - Currency
Medical Allow - Currency
Food Allow - Currency
Tax - Currency
Gross Income - Currency
Net Pay - Currency
Annual Salary - Currency
Manager Comm - Currency
Question Zone
#1) What do you understand by ‘Database’?
Answer: Database is an organized collection of related data where the data is stored and organized to serve some specific purpose.
For Example, A librarian maintain a database of all the information related to the books that are available in the library.
Q #6) What are the various types of relationships in Database? Define them.
Q #7) Explain the terms ‘Record’, ‘Field’ and ‘Table’ in terms of database.
Answer:
Record: Record is a collection of values or fields of a specific entity. For Example, An employee, Salary
account, etc.
Field: A field refers to an area within a record that is reserved for specific data. For Example, Employee ID.
Table: Table is the collection of records of specific types. For Example, the Employee table is a collection of
records related to all the employees.