INFOMAN Prelim Notes
INFOMAN Prelim Notes
Types of Databases
o Single-user Database:
→ Supports only one user at a time.
o Desktop Database:
→ runs on personal computer.
o Multiuser Database:
→ Supports multiple users at the same time.
o Workgroup Database:
→ supports a relatively small group or department.
o Enterprise Database:
→ used by the entire organization and supports many users across many
departments
o Centralized Database:
→ Data located at a single site
o Distributed Database:
→ Data distributed across several doff. sites
o Cloud Database:
→ maintain using cloud services like AWS or Azure.
o General-purpose Database:
→ Contains a wide variety of data used in multiple disciplines.
o Discipline-specific Database:
→ Focused on a specific subject area.
o Operational Database:
→ Supports day-to-day operations.
o Analytical Database:
→ Stores historical data for decision-making.
Importance of Database Design
• Definition:
→ Process of structuring a database to meet user needs.
→ Activities that focus on the design of the database.
• Challenges:
o Insufficient specifications and/or poor logical data modeling
o Not enough time in the development schedule
o Too many changes occurring throughout the development cycle
o Database design assigned to, or performed by, novices
• Design Process:
o Transform entities into tables.
o Convert attributes into columns.
o Define data types and constraints.
o Establish relationships using primary and foreign keys.
• Early file systems improved over manual methods but had limitations:
o Lengthy Development Time:
→ First and most glaring problem
→ Required extensive programming for simple tasks.
o Difficulty of getting quick answers
→ Need to write programs to produce even simplest reports make ad hoh
queries impossible.
o Complex System Administration
→ Systems administration becomes more difficult as the number of files in
the system expands.
o Lack of security and limited data sharing:
→ Data sharing and security are closely related
o Extensive Programming:
→ Making changes to an existing file structure
Data Dependence and Redundancy Issues
• Structural Dependence:
→ Data characteristic/ changes in the database schema affects data access
• Structural Independence:
→ Data characteristics/ Changes in schema do not affect data access.
• Data Dependence:
→ Data condition/ data representation is dependent on physical data storage
• Data Independence:
→ Data condition/ data access is unaffected by changes in the physical data
storage.
• Data Redundancy: exists when some data is stored unnecessarily.
o Poor data security – multiple copies of data increases
o Data inconsistency – conflicting versions of the same data appear in diff.
Places.
o data-entry errors – complex entries are made in several diff. Files.
o Data integrity problems – enter a nonexistent sales agents names
Data Anomalies
• Definition:
→ Data abnormality inconsistent change made to database
→ Required changes in the redundant data
• Causes:
o Failure to update redundant data consistently.
o Conflicting versions of data appearing in different locations.
Data Models
• Data Modeling – The first step in designing a database, referring to the process of
creating a specific data model for a determined problem domain.
• Data model – A relatively simple representation, usually graphical, of more
complex real-world data structures.
• One-to-one (1:1) relationship – A single entity is associated with only one other
entity.
• One-to-many (1:M) relationship – One entity is associated with many other
entities.
• Many-to-many (M:M) relationship – Many entities are associated with many other
entities.
Network Model
Object-Oriented Model
• Refers to new methods for managing and analyzing large amounts of web and
sensor-generated data.
• Douglas Laney (Gartner Group) defined Big Data characteristics:
NoSQL
1. External Model
a. The end-user’s view of the data environment.
b. Users manipulate data and generate information via application programs.
c. Represented using ER diagrams.
d. A specific representation of an external view is called an external
schema.
2. Conceptual Model
a. Represents a global view of the database for the entire organization.
b. Also known as a conceptual schema.
c. Identifies and describes main data objects.
3. Internal Model
a. The database as seen by the DBMS.
b. Requires mapping of the conceptual model’s characteristics to an
implementation model.
c. Internal schema – A specific representation of the internal model using
database constructs.
Physical Model