Database Management Systems
Database Management Systems
11/13/24
Database management system is a set of
programs that deals with
11/13/24
the hierarchical model:treelike model, is
confined to a one-to-many relationship
11/13/24
What is DBMS?
Common DBMS
11/13/24
This is a relational database model
Data is stored in tabular form
marital status
Rows represent ENTITIES e.g. individual and
one entity
Table: a collection of records
entry.
DATA MODEL: WHAT’S A MODEL?
A data model is a representation of reality
It’s used to define the storage and
Definition:
A key of a relation is a subset of attributes with the following
attributes:
• Unique identification
• Non-redundancy
TYPES OF KEYS
PRIMARY KEY
Serves as the row level addressing mechanism in
the relational database model.
It can be formed through the combination of
several items.
FOREIGN KEY
A column or set of columns within a table that
are required to match those of a primary key of a
second table.
These keys are used to form a RELATIONAL
JOIN - thereby connecting row to row across
the individual tables.
Relational Database Management
System (RDBMS)
Table A
Table B
11/13/24
Digital legal documents
Electronic filing system
Limitations
11/13/24 Prepared by: S. K. M. Njovu
STOP
CONSTRUCTING JOIN RELATIONSHIPS
One-to-many relationships include the
Primary Key of the ‘one’ table and a Foreign
Key (FK) in the ‘many’ table.
GETTING STARTED WITH MADBMS
11/13/24
Point and click at WINDOWS BUTTON
Point and click at ALL PROGRAMS
2007
Wait to see the following initial screen …
11/13/24 Prepared by: S. K. M. Njovu
MICROSOFT ACCESS 2007
CREATING A NEW BLANK DATABASE
11/13/24
Click at NEW BLANK DATABASE
Specify the database file name e.g.
following screen …
11/13/24 Prepared by: S. K. M. Njovu
DATABASE CREATION WINDOW
CREATING TABLES
11/13/24
Assume the database is open, proceed as
follows:
11/13/24
Type the field name e.g. reg-number
Specify its data type e.g. text
11/13/24
Let us assume it is an MU staff database
Database name: MU-STAFF
description
Department: subsidiary table – departmentcode,
description
Thenumber of subsidiary tables will depend on the
complexity of the main table and the nature of data
5-9/1: CREATING RELATIONSHIPS
11/13/24
Once the tables are created, they have to be
linked
main table
Linking fields should have some properties
11/13/24
Access forms are much like paper forms
You can use them to enter, edit, or display
11/13/24
Open your database
Select a TABLE to be used
Click at FORM
Demonstration …
11/13/24 Prepared by: S. K. M. Njovu
CREATING FORM SCREEN
CREATING A QUERY
11/13/24
Use a query to view a subset of your data
Use a query to answer questions about your
11/13/24
Open your database
Click at CREATE
11/13/24
Reports organize and summarize data for
viewing online or for printing
records
You can include summary data such as totals,
11/13/24
Open a database to use
Click at CREATE, REPORT WIZARD, next
employees, next,next
Choose report layout, next
report