Im Reviewer
Im Reviewer
COMP 010
SECOND SEMESTER
FILE
DATA
→ A collection of related records
→ It could be structured or unstructured
→ Also referred to as “Tables“
→ Facts, Texts, Graphics, Images, Sound, and
Video segments.
DATABASE
→ An organized collection of logically related
data. Managed by a controlling agent DBMS
INFORMATION
→ Through the information given we can easily make
a decision
→ Data processed to be useful in decision making
DATA HIERARCHY
→ How data is usually stored
METADATA
BIT → Data that describes data
→ The smallest unit of data → Description of the properties or
→ Has only two vales [ 0 , 1 ] characteristics of the data
- Datatype
BYTES
- Field sizes
→ Represents one character
- Allowable values
→ Any special character
- Documentation
→ 8 bits make one byte
→ Values [ A, 1, ?]
FIELD
→ Represents a combination of bytes
→ Make up one aspect of a Business Object
→ Also called as “Column“ or “Attributes“
Example: Student Number, Student Name
DATA NAME
RECORD
→ A combination of related fields → User define
→ Also called as “Row” or “Tuple“ Rules in giving Data Name:
1.) Should be documenting or self-documenting
2.) It is descriptive for its content
3.) No special character except underscore
4.) No embeded space
Information Management |
COMP 010
SECOND SEMESTER
MIN-MAX
→ Allowable values
→ Stricter Contraints
→ Identify exactly what values we may just input in
particular field
DESCRIPTION
→ Description of the data (malamang)
NO SQL ( 2000's )
→ New generation of databases that addresses
the specific challenges of Big Data.
→ Mostly used for non-structured data.
example:
- Monggo Do
- Amazon Dynomo DD
OTHER CONCEPTS...
DATA WAREHOUSE
→ Subject oriented, Integrated, Time variant, and
non-volatile collection of data used in support
of management decision making and business
intelligence.
Deliverables
→ The functional specifications for a system that
meet users requirements and is feasible to develop
and implement.
-Doable
Figure 1: System Development Life Cycle -Can be implemented
-Should out way the cause
PLANNING
DESIGN
→ Is generally a high level so you do not go to the → The phase where you create the structure of your
details of what must be done but you know there is database
something that must be done.
Purpose
Purpose → To elicit and structure all information requirements
→ To develop a preliminary understanding of a → To develop all technology and organizational speci
business situation. -fications.
→ How information systems might help solve a Deliverables
problem or make an opportunity possible. → Detailed technical/Functional specifications of all
data, forms, reports, displays, and processing rules
Deliverables → Programs and database structures, technology
→ Written request to study the possible changes purchases, physical site plans, and organizational
to an existing system or the development of a redesigns
new system → Anything technical will happen in design
→ Addresses an information systems solutions to the
business problems or opportunities
Includes: Includes:
- Entities (tables) - Tables - Datatypes 1.) WATERFALL
- Attributes (columns/fields) - Columns - Validation Rules
- Keys - Database Trigger
→ System development life cycle
- Relationships (Keys)
- Access Contraints → Detailed, Well-planned development process
→ Time-consuming, but comprehensive
This is more identifying
In physical data model we are → Long Development cycle
- Entities (tables)
adding more to those that we 2.) RAPID APPLICATION DEVELOPMENT
- Attributes (columns/fields)
had identified data types
- Relationships (Keys) → Iterative process of rapidly, repeating analysis,
design, and implementation
→ Repeat certain faces
Use business names for We give more structured to → PROTOTYPING popular RAD method, it repeats
entities and attributes . the attributes and etc...
implementation and maintenance activities with
new prototypes
[Take Note]...
→ A table is not always a relation but a relation is 5. IDENTIFIER
always a table → It should be constant
→ A relation is a form of table
→ Table is generic but not all table is relation CHARACTERISTIC OF IDENTIFIERS:
→ Must not change value
→ Not Null
CLASSIFICTAION OF ATTRIBUTES → Unique
RELATIONAL KEYS
1.) PRIMARY KEYS
→ An attribute or a combination of attributes
that uniquely identifies each row in a relation
3.) SINGLE VALUED vs. MULTI-VALUED ATTRIBUTES → It is also the IDENTIFIERS
INTEGRITY CONSTRAINTS
→ Rules limiting acceptable values and actions
→ Facilitate maintaining the accuracy and
integrity of data
2. ENTITY INTEGRITY
→ Ensures that every relation has a valid
primary key.
3. REFERENTIAL INTEGRITY
→ Rule that maintains consistency among the
rows of 2 relationships
[Take Note]...
→ Rule states that if there is a foreign key value must
match a primary key value or the foreign key must
be null
Information Management |
COMP 010
SECOND SEMESTER
[Take Note]...
→ We will deciding if what attribute should be
grouped together in one relation
MODIFICATION OF ANOMALIES
→ Are those that we encounter in tables that are
not normalized.
Table 1: Customer Table Table 2: Car Table [Take Note]...And the Car table has to point to the primary key
Contains the; Contains the; of the other table.The foreign key has to point to the pk of the
-customerId -carId other table. And in the table the carId is pk here so it means it’s
-customerName -Year the foreign key.
-carId -Make
-Model
[Take Note]... The first table must not only contain the
customerId and customerName but the carId as well.
Because this is the purchase of the customer , if we didn’t
include it here we really didn’t know if what he/she purchase.
And adding the carId we will know that this is the one he/she
purchase.
As you can see here the CarId 102 has been bought by several
customers [ 3 to be specific]. And therefore the information
about the CarId 102 is repeated depending on the times it was
bought, and that’s the redundancy that we would want to
remove.
1 MILLION
If it has the same carId number even if it’s ten you don’t need to
update it individually since you can get all the information just
by referring to one carId. Primary key: EmpID, EmpName, Address
Foreign key: DeptID
3.) DELETION ANOMALY Another PK: DeptID, DeptName, DeptMgr
→ Exist when certain attributes are lost because Just like what we did earlier we do not leave the DepartmentID
of the deletion of other attributes out of the Employee table because that is the information as to
→ We have to delete data, but int the process where or what department the employee belong. If we don’t
you are also deleting other data which are include the Department ID we will loose that information.
not supposed to be deleted
This is how we Decompose it...
FOR EXAMPLE:
This table contains the flight number, flight date, from, to, and
No. of passengers.
TRANSITIVE DEPENDENCY
→ Functional dependency between the primary key and
one or more non-key attributes
→ Dependent on the primary key via another non-key
attribute
Multivalued
And for order 1006 you will notice that the it has a 3 product
Id which is [ 7, 5, and 4]. It also has 3 product description
which is [ Tea table, TV stand, and Porch Swing] and so
with the rest. And in the order 1007 it has 2 values in proId,
PorDescri and etc... And this is what we need to do - to
remove all the multivalued attributes.
Information Management |
COMP 010
SECOND SEMESTER
1NF
ORDERPRODUCT(orderid,orderdate,custid,custname,custad
rs,prodid,proddesc,prodfin,uprice,qty)
First Table: [primary key] Order Id [attributes] Order
date, then it has [foreign key] which is the Customer ID
B. Cardinality
Data Modeling
Describes how many instances of one entity relate to
Process of documenting rules and policies that govern
another.
data.
One-to-One (1:1)
Produces a data model, often represented as an ERD.
One-to-Many (1:M)
ERD = Graphical representation of data and
Many-to-Many (M:N)
relationships.
Minimum Cardinality:
Components of ERD
→ 0 = optional, 1 = mandatory
A. Entity
Maximum Cardinality:
A real-world object or concept (e.g., STUDENT, BOOK,
→ The maximum number of entity instances that can be
SALE).
associated.
Entity Type: Group of similar entities (e.g., all students).
Entity Instance: One particular occurrence (e.g., Student
Symbols Example:
#123).
|| — Mandatory one
|O — Optional one
B. Attribute
|< — Mandatory many
Characteristics or properties of an entity (e.g.,
O< — Optional many
Student_ID, Name).
Each attribute holds data about a specific trait.
Strong vs. Weak Entities
C. Relationship
Association between entities (e.g., EMPLOYEE completes Strong Entity:
COURSE). Exists independently.
Can be: Has a unique identifier.
Drawn with a single-line rectangle.
- Relationship Type (general form of the relationship)
- Relationship Instance (a single, specific Weak Entity:
connection) Depends on a strong entity.
Has no unique identifier.
Naming Relationships Drawn with a double-line rectangle.
Needs a foreign key + partial key to be identified.
Use verb phrases in present tense (e.g., "Assigned_to",
"Manages").
Example:
Avoid vague terms like "Has".
ORDER (strong) → ORDER_ITEM (weak)
EMPLOYEE (strong) → DEPENDENT (weak)
Information Management |
COMP 010
SECOND SEMESTER
Associative Entities
Convert to:
EMPLOYEE – CERTIFICATE – COURSE Where
CERTIFICATE stores DateCompleted, Grade,
etc.
Use when:
The relationship involves many-to-many.
The relationship has attributes of its own.
It needs to participate in other relationships.