CSC 305 - Database Architecture
CSC 305 - Database Architecture
DATABASE ARCHITECTURE,
CONCEPTS AND MODELS
OGUNJIMI, OLAWALE OLUWASEGUN
CSC/2012/056
1. Database Architecture
Database architecture focuses on the design, development, implementation and maintenance of
computer programs that store and organize information for businesses, agencies and institutions.
The architecture of a database system determines its capability, reliability, effectiveness and
efficiency in meeting user requirements. But besides the visible functions seen through some
data manipulation language, a good database architecture should provide:
a) Independence of data and programs
b) Ease of system design
c) Ease of programming
d) Powerful query facilities
e) Protection of data
The features listed above become especially important in large organisations where corporate
data are held centrally. In such situations, no single user department has responsibility over, nor
can they be expected to know about, all of the organisations data. This becomes the job of a
Database Administrator (DBA) who has a daunting range of responsibilities that include
creating, expanding, protecting and maintaining the integrity of all data while addressing the
interests of different present and future user communities. To create a database, a DBA has to
analyse and assess the data requirements of all users and from these determine its logical
structure (database schema).
Data Abstraction
To meet the requirements above, a more sophisticated architecture is in fact used, providing a
number of levels of data abstraction or data definition. The database schema, also known as
Conceptual Schema, mentioned above represents an information model at the logical level of
data definition. At this level, we abstract out details like computer storage structures, their
restrictions, or their operational efficiencies.
The Internal Schema maps the contents of the conceptual schema onto structures representing
tuples, associated key organisations and indexes, etc., taking into account application
characteristics and restrictions of a given computer system.
An External Schema presents only those aspects of the conceptual schema that are relevant to the
particular application at hand, abstracting out all other details.
Data Administration
Functions of a DBA include:
1. Creation of the database
To create a database, a DBA has to analyse and assess the requirements of the users and
from these determine its logical structure. In other words, the DBA has to design a
conceptual schema and a first variant of an internal schema. When the internal schema is
ready, the DBA must load the database with actual data.
Primary Keys
A primary key (PK), consisting of one or more columns, uniquely identifies each row in a table.
Joining Tables
Tables may be joined to each other.
Indexed Columns
An index works just like the index in the back of a book. For example, you can do a sequential
read and look at every page of a book to find the references to John Doe, or you and find those
references faster by doing an indexed read, using the index (which happens to point to just 3
pages out of a 500 page book).
Null Values
Unless otherwise specified, a column in a table may have a null value. Any column that is part of
the primary key, or that has been specified as being Not Null, may not contain a null value. All
other columns may contain null values.
SQL. Structured Query Language (SQL) is the ANSI (American National Standards Institute)
standard language for use with relational database management systems. Query tools (such as
Business Objects) automatically translate your query specifications into SQL.
The SQL for a query generally has four parts:
The SELECT clause, a required clause that specifies the column(s) to be retrieved
The FROM clause, a required clause that specifies the table(s) from which the data is to
be retrieved
The WHERE clause, an optional clause that specifies the conditions for selecting specific
rows to be retrieved
The ORDER BY clause, an optional clause that specifies the sort order in which the
retrieved rows are to be written to the query output
Flat model
This may not strictly qualify as a data model. The flat (or table) model consists of a
single, two-dimensional array of data elements, where all members of a given column are
assumed to be similar values, and all members of a row are assumed to be related to one
another.
Hierarchical model
In this model data is organized into a tree-like structure, implying a single upward link in
each record to describe the nesting, and a sort field to keep the records in a particular
order in each same-level list.
Network model
This model organizes data using two fundamental constructs, called records and sets.
Records contain fields, and sets define one-to-many relationships between records: one
owner, many members.
Relational model
is a database model based on first-order predicate logic. Its core idea is to describe a
database as a collection of predicates over a finite set of predicate variables, describing
constraints on the possible values and combinations of values.
Object-relational model
Similar to a relational database model, but objects, classes and inheritance are directly
supported in database schemas and in the query language.
Star schema
The simplest style of data warehouse schema. The star schema consists of a few "fact
tables" (possibly only one, justifying the name) referencing any number of "dimension
tables".
REFERENCES
Idowu P.A. et al. A Spatial Conceptual Data Model For Public Health in Nigeria. International
Journal of Research in Business and Technology Vol 4. No. 3 (2014).
Oyelami B.O. and Adewumi A.A. Models For Forecasting the Demand and Supply of Electricity
in Nigeria. Science and Education Publishing
Falayi E.O. et al. Empirical Models for the Correlation of Global Solar Radiation with
Meteorological Data for Iseyin, Nigeria