Professional Documents
Culture Documents
Info Sheet 2
Info Sheet 2
List of Modules
No. MODULE
MODULE TITLE
CODE
REFERENCES:
Access SQL: basic concepts, vocabulary, and syntax. (n.d.). Microsoft. Retrieved March
10, 2021, from https://support.microsoft.com/en-us/office/access-sql-basic-
concepts-vocabulary-and-syntax-444d0303-cde1-424e-9a74-e8dc3e460671
What is a Database Model. (n.d.). Lucidchart. Retrieved March 10, 2021, from
https://www.lucidchart.com/pages/database-diagram/database-models
Learning Objectives:
After reading this INFORMATION SHEET, YOU MUST be able to:
1. Familiarize/Utilized Database Management Systems.
(Kreig 1999)
Data Management.
An FMS should provide data management services to the application.
Generality with respect to storage devices. The FMS data abstractions and access
methods should remain unchanged irrespective of the devices involved in data
storage.
Validity. An FMS should guarantee that at any given moment the stored data
reflect the operations performed on them.
Protection. Illegal or potentially dangerous operations on the data should be
controlled by the FMS.
Concurrency. In multiprogramming systems, concurrent access to the data
should be allowed with minimal differences.
Performance. Compromise data access speed and data transfer rate with
functionality.
From the point of view of an end user (or application) an FMS typically provides
the following functionalities (Calleri, 2001):
• File creation, modification and deletion.
• Ownership of files and access control on the basis of ownership permissions.
• Facilities to structure data within files (predefined record formats, etc).
• Facilities for maintaining data redundancies against technical failure (back-
ups, disk mirroring, etc.).
• Logical identification and structuring of the data, via file names and
hierarchical directory structures.
DBMS Concepts
DBMS solutions come equipped with a unique set of components, each
responsible for performing different tasks. Here are the most basic DBMS
components:
Data management is a very complex task that involves a lot of components that
work in synergy. The data management concepts can be grouped into different
entities that have common tasks pertaining to a data module.
Choosing the right database for your organization based on the type of data and
the volume of data that is keyed in is important. Most of the leading vendors of
database provide you with an inbuilt database management system. Apart from
that there are third party database management systems that can be used.
The other concept that you should be aware of is the data security management.
Access to the different modules should be given only to those who need it. Proper
authentication and authorization is needed before they access the data in the
database.
Data redundancy
1. Data redundancy is the repetition of data. Data redundancy data is a
common issue in computer data storage and database systems.
2. Data redundancy in database means that some data fields are repeated in
the database.
3. This data repetition may occur either if a field is repeated in two or more
tables or if the field is repeated within the table.
4. Data can appear multiple times in a database for a variety of reasons. For
example, a shop may have the same customer’s name appearing several
times if that customer has bought several different products at different
dates.
Selecting a data model is also a matter of aligning your priorities for the
database with the strengths of a particular model, whether those priorities
include speed, cost reduction, usability, or something else.
Relational model
The most common model, the relational model sorts data into tables, also known
as relations, each of which consists of columns and rows. Each column lists an
attribute of the entity in question, such as price, zip code, or birth date. Together,
the attributes in a relation are called a domain. A particular attribute or
combination of attributes is chosen as a primary key that can be referred to in
other tables, when it’s called a foreign key.
Each row, also called a tuple, includes data about a specific instance of the entity
in question, such as a particular employee.
Hierarchical model
The hierarchical model organizes data into a tree-like structure, where each
record has a single parent or root. Sibling records are sorted in a particular order.
That order is used as the physical order for storing the database. This model is
good for describing many real-world relationships.
This model was primarily used by IBM’s Information Management Systems in the 60s and 70s,
but they are rarely seen today due to certain operational inefficiencies.
It was most popular in the 70s after it was formally defined by the Conference
on Data Systems Languages (CODASYL).
When you want to retrieve data from a database, you ask for the data by using
Structured Query Language, or SQL. SQL is a computer language that closely
resembles English, but that database programs understand. Every query that
you run uses SQL behind the scenes.
Understanding how SQL works can help you create better queries, and can make
it easier for you to understand how to fix a query that is not returning the results
that you want.
You use SQL to describe sets of data that can help you answer questions. When
you use SQL, you must use the correct syntax. Syntax is the set of rules by which
the elements of a language are correctly combined. SQL syntax is based on
English syntax, and uses many of the same elements as Visual Basic for
Applications (VBA) syntax.
For example, a simple SQL statement that retrieves a list of last names for
contacts whose first name is Mary might resemble this:
SELECT Last_Name
FROM Contacts
WHERE First_Name = 'Mary';
SELECT statements
To describe a set of data by using SQL, you write a SELECT statement. A SELECT
statement contains a complete description of a set of data that you want to obtain
from a database. This includes the following:
SELECT field_1
FROM table_1
WHERE criterion_1
An example in Access
The following illustrates what a SQL statement for a simple select query might
look like in Access:
Let's look at the example, one clause at a time, to see how SQL syntax works.
A SELECT clause does not have to say which tables contain the fields, and it
cannot specify any conditions that must be met by the data to be included.
The SELECT clause always appears in front of the FROM clause in a SELECT
statement.
An ORDER BY clause contains a list of the fields that you want to use for sorting,
in the same order that you want to apply the sort operations.
For example, suppose that you want your results sorted first by the value of the
field Company in descending order, and — if there are records with the same
Note: By default, Access sorts values in ascending order (A-Z, smallest to largest).
Use the DESC keyword to sort values in descending order instead.