Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

INFORMATION MANAGEMENT WHAT IS DATABASE?

CHAPTER 1  Database is a shared, integrated computer


INTRODUCTION TO DATABASE SYSTEMS structure that stores a collection of the
following:
DATA vs. INFORMATION  End – user data, which is raw facts of interest to
-- Data are raw facts. The word raw indicates that the the end user.
facts have not yet been processed to reveal their  Description of data characteristics and the set
meaning. Keep in mind that raw data must be properly of relationships that link the data found within
formatted for storage, processing, and presentation. the database (known as the metadata).
-- information is the result of processing raw data to In short, metadata present a more complete picture
reveal its meaning in which it requires context. of the data in the database. Given the
characteristics of metadata, you might hear a
database described as a “collection of self –
describing data.”

WHAT IS TRANSACTION?
In the context of databases, a single logical operation on
a data or an event that occurs on a database is known
as a transaction.

EXAMPLES OF DATA VS. INFORMATION PROPERTIES OF TRANSACTION


 The history of temperature readings all over the ATOMICITY
world for the past 100 years is data. If this data -- It requires that each transaction be "all or nothing“. If
is organized and analyzed to find that global one part of the transaction fails, the entire transaction
temperature is rising, then that is information. fails, and the database state is left unchanged.
 The number of visitors to a website by country CONSISTENCY
is an example of data. Finding out that traffic -- The consistency property ensures that any transaction
from the U.S. is increasing while that from will bring the database from one valid state to another.
Australia is decreasing is meaningful  Any data written to the database must be valid
information. according to all defined rules,
including constraints, cascades, triggers, and
WHAT IS DATA MANAGEMENT? any combination thereof.
Data management is a discipline that focuses on the ISOLATION
proper generation, storage, and retrieval of data. Given -- It ensures that the concurrent execution of
the crucial role that data plays, it is obvious that data transactions result in a system state that would be
management is a core activity for any business, obtained if transactions were executed serially, one
government agency, service organization, or charity. after the other.
DURABILITY
-- This means that once a transaction has been
committed, it will remain so, even in the event of power
loss, crashes, or errors.

WHAT IS A DATABASE SYSTEM?


A database system defines and regulates the collection,
storage, management, and use of data.
MAJOR PARTS OF DATABASE SYSTEM Data
Hardware - This refers to the collection of facts stored in the
- It refers to all the database system’s physical devices. database. Because data are the raw material from
Software which information is gathered, determining what data
- It refers to the components that are needed to make to enter into the database and how to organize those
the database function fully. data is a vital part of the database designer’s job.
Three software for dbS
Operating System. It manages all hardware WHAT IS A DATABASE MANAGEMENT SYSTEM?
components and makes it possible for all other software Commonly known as DBMS, is a collection of programs
to run on the computers. (e.g. Microsoft Windows, that manages the database structure and control access
Linux, Mac OS) to the data stored in the database. For example,
DBMS Software. It manages the database within the imagine that a database as a very well – organized
database system. (e.g. Microsoft SQL ++Server, Oracle, electronic filing cabinet in which powerful software,
MySQL) known as a database management system that helps
Application Programs and Utility Software. They are manage the cabinet’s contents.
used to access and manipulate data in the DBMS and to
manage the computer environment in which data Illustration of dbms
access and manipulation take place. (e.g. Adobe
Dreamweaver, Microsoft Visual Studio, WAMPServer)
People
- This component includes all users of the database
system.
Types of users based on functions
System Administrators. They oversee the database
system’s general operations.
Database Administrators. Also known as DBAs,
they manage the DBMS and ensure that the database is ROLE OF DBMS
functioning properly to avoid system glitches in the The DBMS serves as the intermediary between the user
future. and the database. The database structure itself is stored
Database Designers. They simply design the as a collection of files, and the only way to access the
database structure that will dictate the usefulness and data in those files is through the DBMS.
effectiveness of the database environment that these
people will develop. ADVANTAGES OF DBMS
Systems Analysts and Programmers. They design and Improved data sharing
implement the application programs. They also design The DBMS helps create an environment in
and create the data – entry screens, reports, and which end users have better access to more data and
procedures through which end – users access and better managed data. Such access makes it possible for
manipulate the database’s data. end users to respond quickly to changes in their
End – users. These are the people who use the environment.
application programs to run the organization’s daily Improved data security
operations. The more users access the data, the greater the
Procedures risks of data security breaches. A DBMS provides a
- These are the instructions and rules that govern the framework for better enforcement of data privacy and
design and use of the database system. Procedures are security policies.
a critical component of the database system. They help Better data integration.
to ensure that companies have an organized way to Wider access to well – managed data promotes
monitor and audit the data that enter the database and an integrated view of the organization’s operations and
the information generated from those data. a clearer view of the big picture. It becomes much
easier to see how actions in one segment of the purchasing different tools, adopting different
company affect other segments. techniques as per the requirement.
Minimized data inconsistency Initial training required for all programmers and user.
Data inconsistency exists when different versions of Large amount of human efforts, the time and
the same data appear in different places. The cost is needed to train the end users and application
probability of data inconsistency is greatly reduced in a programmers in order to get used to the database
properly designed database. systems.
Improved data access.
The DBMS makes it possible to produce quick
CHAPTER 2
answers to ad – hoc queries. From a database
DATA MODELING CONCEPTS
perspective, a query is a specific request issued to the
DBMS for data manipulation. An ad – hoc query on the
other hand, is a spur-of-the-moment question. The WHAT IS A DATA MODEL?
DBMS sends back an answer (called the query result - data model pertains to the
set) to the application. organization data elements and standardizes how the
Provides Back – up and Recovery. data elements relate to one another.
Centralizing a database provides the schemes STRUCTURED DATA
such as recovery and backups from the failures which - is organized in a predefined format and is usually
may help the database to recover from the inconsistent stored in tables with rows and columns, making it easy
state to the state that existed prior to the occurrence of to search, sort, and analyze.
the failure, though methods are very complex. UNSTRUCTURED DATA
Increased end - user productivity - on the other hand, is not organized in a predefined
The availability of data, combined with the tools format and is more difficult to search, analyze, and
that transform data into usable information, empowers manage.
end users to make quick, informed decisions that can A very important aspect about a data model is that
make the difference between success and failure in the when it is implementation – ready, it should contain at
global economy. least the following components:
o A description of the data structure that will
DISADVANTAGES OF DBMS store the end – user data.
Database Complexity o A set of enforceable rules to guarantee the
The design of the database system is complex, integrity of the data.
difficult and is very time consuming task to perform. o A data manipulation methodology that supports
Substantial Hardware and Software start – up costs the real – world data transformations.
Huge amount of investment is needed to setup
the required hardware and the software needed to run Building blocks of data model
those applications. Entity. It represents a particular type of object in the
Damage to database affects virtually all application real world.
programs Attribute. It is a characteristics of an entity.
one part of the database is corrupted or damaged Relationship. It describes an association among
because of the hardware or software failure, since we entities. Data models uses three types of relationships:
don’t have many versions of the file, all the application one – to – one (1:1), one – to – many (1:M), and many –
programs which are dependent on this database are to – many (M:M)
implicitly affected. Constraints. It is a restriction placed on the data.
Extensive conversion costs in moving form a file – Constraints are important because they help to ensure
based system to a database system. data integrity.
Upgrading a file – based system to a database
system requires a large amount of cost is incurred in
THE CONCEPT ON BUSINESS RULES • Drop: It is used to delete objects from the
A business rule is a brief, precise, and unambiguous database.
description of a policy, procedure, or principle within a • Truncate: It is used to remove all records from a
specific organization. table.
Examples: • Rename: It is used to rename an object.
- A STUDENT may enroll many SUBJECTS. • Comment: It is used to comment on the data
- A STUDENT NUMBER is generated to only one dictionary.
STUDENT

TYPES OF DATA MODELS


1. HIERARCHICAL MODEL
- Developed in the 1960s, its basic logical structure is 3. RELATIONAL MODEL
represented by an upside – down “tree”. The Introduced by E. F. Codd in 1970, the relational model
hierarchical structure contains levels, or segments. foundation is a mathematical concept known as a
2. Network model relation. To avoid the complexity of abstract
- Unlike the hierarchical model, the network model mathematical theory, you can think of a relation
allows a record to have more than one parent. (sometimes called a table) as a matrix composed of
Schema. Conceptual organization of entire database as intersecting rows and columns.
viewed by the database administrator. Each row in a relation is called a tuple. Each column
represents an attribute.
Subschema. Defines database portion “seen” by the
application programs that actually produce the desired
information from data contained within the database
Data Management Language (DML). It defines the
environment in which data can be managed.
Data Definition Language (DDL). It enables database
administrator to define schema components. 4. object-oriented model
DATA MANAGEMENT LANGUAGE (DML) Object-oriented data model (OODM) is the basis for
• Select: It is used to retrieve data from a the object-oriented database management system
database. (OODBMS). OODM is said to be a semantic data model
• Insert: It is used to insert data into a table. in which it describes the meaning of its instances.
• Update: It is used to update existing data within
a table. LEVELS OF DATA ABSTRACTION
• Delete: It is used to delete all records from a 1. EXTERNAL MODEL
table. The external model is the end users’ view of the data
• Merge: It performs UPSERT operation, i.e., environment. The term end users refer to people who
insert or update operations. use the application programs to manipulate the data
• Call: It is used to call a structured query and generate information.
language or a Java subprogram.
• Explain Plan: It has the parameter of explaining
data.
• Lock Table: It controls concurrency.
DATA DEFINITION LANGUAGE (DDL)
• Create: It is used to create objects in the
database. 2. CONCEPTUAL MODEL
• Alter: It is used to alter the structure of the The conceptual model represents a global view of the
database. entire database as viewed by the entire organization.
These are present in more advanced relational
databases catering to inherently structured data such as
XML documents, spatial data, multimedia objects and
even dynamically definable data types.

WHAT IS A KEY?
A key consists of one or more attributes that determine
other attributes in a relational table. In relational
databases, keys are important because they are used to
ensure that each row in a table is uniquely identifiable.

3. Internal model KEYS COMMONLY USED IN RDM


The internal model is the representation of the 1. Primary Key.
database as “seen” by the DBMS. It is used to uniquely identify a record in a table.
2. Candidate Keys.
Sometimes called as a unique key, it is created on a field
containing only unique values throughout the entire
table similar to a primary key.
3. Foreign Keys.
They are copies of primary keys created into child tables
to form the opposite side of the link in an inter – table
relationship in which it establishes a “relational
database relation”.

CHAPTER 3 What is data integrity?


THE RELATIONAL DATABASE MODEL In a relational database, data integrity refers to a
condition in which the data in the database is in
THE CONCEPT OF DATA TYPES IN A RELATIONAL compliance with all entity and referential integrity
DATABASE MODEL constraints.
1. Simple Data Types. Integrity rules
This includes basic validation and formatting - are rules or constraints that are used in a database to
requirements placed on to individual values Simple data ensure the consistency, accuracy, and completeness of
types may also be sub data.
Strings. A string is a sequence of one or more
characters. Types of Integrity rules
Numbers. Numeric data types are often the most Entity integrity rules: These rules ensure that each row
numerous field data types in many database tables. in a table has a unique identifier or primary key, and
Here are some of them: that this identifier is not null or empty.
Integers Floating points Referential integrity rules: These rules ensure that
Fixed – length decimals Dates and times relationships between tables are consistent and valid,
and that foreign key values in one table correspond to
DATA TYPES ACCORDING TO COMPLEXITY valid primary key values in another table.
2. Complex Data Types. Domain integrity rules: These rules define the valid
This encompasses object data types. Available object values that can be stored in a field or column, and
data types vary for different relational databases. prevent the insertion of invalid or inconsistent data.
3. Specialized Data Types. User-defined integrity rules: These rules can be created
by users to enforce specific business rules or
requirements, such as ensuring that a customer's Relationship Models. An ERD visualizes the relationships
account balance does not go below zero. between entities like people, things, or concepts in a
database.
TYPES of RELATIONAL SET OPERATORS
1. SELECT Why Make an ERD?
– also known as RESTRICT, it yields values for all rows  Document an existing database structure
found in a table that satisfy a given condition.  Debug, troubleshoot, and analyze
2. PROJECT  Design a new database
– This relational operator yields all values for selected  Gather design requirements
attributes. In other words, PROJECT yields a vertical  Business process re-engineering (BPR)
subset of a table. COMMON ERD SYMBOLS
3. UNION Entities - which are represented by rectangles. An entity
-- It combines all rows from two tables, excluding is an object or concept about which you want to store
duplicate rows. The tables must have the same attribute information.
characteristics which included the columns and domains Relationships - which are represented by diamond
must be compatible to be used in the UNION. shapes, show how two entities share information in the
4. INTERSECT database.
-- This relational operator yields only the rows that Attributes - which are represented by ovals. A key
appear in both tables. As was true in the case of UNION, attribute is the unique, distinguishing characteristic of
the tables must be union – compatible to yield valid the entity.
results. Connecting lines - solid lines that connect attributes and
5. DIFFERENCE show the relationships of entities in the diagram.
-- DIFFERENCE yields all rows in one table that are not Cardinality - specifies the numerical attribute of the
found in the other table; that is, it subtracts one table relationship between entities. It can be one-to-one,
from the other. many-to-one, or many-to-many.
6. PRODUCT
-- This relational operator yields all possible pairs of The History of Entity Relationship Diagrams
rows from two tables also known as the Cartesian 1960s - Charles Bachman worked on visualizing
product. databases and his data structure diagrams became
7. JOIN known as Bachman diagrams.
-- JOIN allows information to be combined from two or
more tables. JOIN is the real power behind the
relational database, allowing the use of independent
tables linked by common attributes.
1970s - Peter Chen developed ERDs in the 1970s and
WHAT IS DATA DICTIONARY? published his proposal for entity relationship modeling
-- Generally provides a detailed description of all tables in a 1976 paper titled "The Entity-Relationship Model:
found within the created database made by the Toward a Unified View of Data".
database designer.

CHAPTER 4
1980s - In the 1980s, another computer scientist
ER and Object – Oriented Modeling
named James Martin, worked to further refine Chen's
ER model and introduced what's known today as the IE
What is an Entity Relationship Diagram (ERD)? notation. IE notation uses Crow's foot to express
-- ERD stands for entity relationship diagram. People cardinality (one to many relationship) instead of Chen's
also call these types of diagrams ER diagrams and Entity notation to epxress the same.
symbols used with the Bachman notation style

symbols used with the CHEN NOTATION STYLE

symbols used with the ie or Crow’s foot NOTATION

ERD Models
Entity Relationship Models can also vary based on the
level of abstraction visualized.

THREE MODELS OF ERD


1. CONCEPTUAL ERD
This model has the most abstraction and least amount
of detail, as such it's appropriate for large projects that
need a higher level view used by business analysts.
2. LOGICAL ERD
This model adds more detail to the conceptual model by
defining additional entities that are operational and
transactional.
3. PHYSICAL ERD
This model serves as the actual design or blueprint of
the database with lots of technical details including
defining cardinality and showing primary and foreign
keys of entities instead of just their abstract semantic
names.

You might also like