Escolar Documentos
Profissional Documentos
Cultura Documentos
IT 29 Database Management
February 2017
HIERARCHICAL DATABASE
MODEL
A hierarchical database is a
design that uses a one-to-
many relationship for data
elements. Hierarchical
database models use a tree
structure that links a number
of disparate elements to one
"owner," or "parent," primary
record.
NETWORK MODEL
This property of having multiple links applies in two ways: the schema and the database itself
can be seen as a generalized graph of record types that are connected by relationship types.
The main advantage of a network database is that it allows for a more natural modeling of
relationships between records or entities, as opposed to the hierarchical model. However,
the relational database model has started to win over both the network and the hierarchical
models because its added flexibility and productivity has become more evident as hardware
technology has become faster
RELATIONAL MODEL
Relational
Model
In 1970, Edgar F. Codd, a British computer scientist with IBM, published A Relational Model
of Data for Large Shared Data Banks. At the time, the renowned paper attracted little
interest, and few understood how Codds groundbreaking work would define the basic rules
for relational data storage, which can be simplified as:
1. Data must be stored and presented as relations, i.e., tables that have relationships
with each other, e.g., primary/foreign keys.
2. To manipulate the data stored in tables, a system should provide relational operators
- code that enables the relationship to be tested between two entities. A good
example is the WHERE clause of a SELECT statement, i.e., the SQL statement
SELECT * FROM CUSTOMER_MASTER WHERE CUSTOMER_SURNAME =
Smith will query the CUSTOMER_MASTER table and return all customers with a
surname of Smith.
Codd later published another paper that outlined the 12 rules that all databases must follow
to qualify as relational. Many modern database systems do not follow all 12 rules, but these
systems are considered relational because they conform to at least two of the 12 rules.
Most modern commercial and open-source database systems are relational in nature and
include well-known applications, e.g., Oracle DB (Oracle Corporation); SQL Server
(Microsoft) and MySQL and Postgres (open source).
ENTITY
RELATIONSHIP
MODEL
An entity-
relationship
model (ERM) is
a theoretical
and conceptual
way of showing
data
relationships in
software
development.
Entity-Relationship Model
ERM is a
database modeling technique that generates an abstract diagram or visual representation of
a systems data that can be helpful in designing a relational database. These diagrams are
known as entity-relationship diagrams, ER diagrams or ERDs.
The first step in information system design dictates that the requirements analysis models
illustrate the type of data or information that needs to be collected. The data modeling
method may be used to illustrate a specific interest areas ontology. Like the relational
model, abstract data is converted to a logical data model when the design of an information
system is built on a database. Likewise, this is converted to a physical model when it is
physically designed.
The building blocks of an ERD are entities, relationships and attributes. Entities have entity
types, which are known as instances of the corresponding entities. Each entity type can exist
independently of another; for example, the entity "vehicle" can have the entity types "car"
and "bus". Relationship is the property that links the entity types together. For example, the
entity type husband is related to the entity type wife by a relationship known as "is-married-
to." Attributes are properties that belong to the entity types as well as to the relationships.
There are a number of ER diagramming tools available on the market. The most common
ones are MySQL Workbench and OpenModelSphere.
STAR SCHEMA
A star schema is a
data warehousing
architecture model
where one fact table
references multiple
dimension tables,
which, when viewed as
a diagram, looks like a
star with the fact table
in the center and the
dimension tables
radiating from it. It is
the simplest among
the data warehousing
schemas and is
currently in wide use.
The fact tables in a star schema usually have two columns: the first is for the foreign keys
pointing to the dimension tables, and the second is for the measures that contain numeric
facts, hence, the name fact table. The dimension tables are actually structures that are
usually composed of multiple hierarchies that categorize data.
COMPARISON OF DATABASE LOGICAL MODELS
-
Advantages Advantages Advantages Advantages Advantages
represents one-to-many less redundant [than allows any file to be related exceptional conceptual Easy to understand. Reflects
relationships well heirarchial model] to any other means of simplicity how users think. This makes
much efficient because there represents relationships in common field it easy for them to query and
visual representation analyze the data
is not much need for terms of sets rather than complexity is greatly
redundant data heirarchy effective communication optimizes navigation
reduced because changes
tool
able to support many-to- could be made to the enhances query extraction
many relationships database schema without integrated with the
more flexible [than affecting the system's ability relational database model rapid aggregational actions
heirarchical] to access data
new relations between files
could easily be added