Escolar Documentos
Profissional Documentos
Cultura Documentos
DATABASES
Group 1
1.
2.
3.
4.
5.
ADITYA
DZAKY NURHAFIZH
M NAUFAL YUNAS
RIYAN A
SAFIRA
S & S Company
Early start
Scott Parry and Susan Gonzales formed
S&S to sell appliances and consumer
electronics
They invest some amount of money to
see the performance in the first six
months
Relevant information is needed to see the
performance of their investment
S&S Overtrading
As it grows so quickly, the accounting
information system selected previously
cannot handle the overloaded data, and
that eventually create irrelevant
information
Therefore, Asthon works with CA
consulting firm to select and install new
AIS.
Asthon also realized that he needs to
have more understandable information to
evaluate the system. Good
documentation system will be required.
Summary
Files vs Database
Database systems were developed to
address the problems associated with the
proliferation of master files.
For years, each time a new information need
arose, companies created new files and
programs.
The result: a significant increase in the number
of master files.
Files vs Databases
Master File 1
Fact A
Fact B
Fact C
Fact D
Master File 2
Fact A
Fact C
Fact E
Fact F
Master File 3
Fact A
Fact D
Fact E
Fact G
Sales
Program
Shipping
Program
Billing
Program
Database
Fact A
Fact B
Fact C
Fact D
Fact E
Fact F
Fact G
Database
Management
System
Sales
Program
Shipping
Program
Billing
Program
4-11
Database
Management
System
Sales
Program
Shipping
Program
Billing
Program
The database
approach treats
data as an
organizational
resource that
should be used by
and managed for
the entire
organization, not
just a particular
department.
A database
management
system (DBMS)
serves as the
4-12
Database
Management
System
Sales
Program
Shipping
Program
Billing
Program
The combination
of the database,
the DBMS, and the
application
programs that
access the
database is
referred to as the
database
system.
4-13
Database
Fact A
Fact B
Fact C
Fact D
Fact E
Fact F
Fact G
Database
Management
System
Sales
Program
Shipping
Program
Billing
Program
Analysis to identify
relationships in the
data, new knowledge
about business
processes, etc.
4-14
Data Sharing
Reporting flexibility
Data Independence
Data is separate from the programs
that access it. Changes can be made
to the data without necessitating a
change in the programs and vice versa
4-16
Cross-Functional Analysis
Relationships between data from
various organizational departments
can be more easily combined.
Example: association between
sales and promotional campaigns
4-18
Physical View
Physical views of data
In file-oriented systems, programmers
must know the physical location and
layout of records used by a program.
They must reference the location,
length, and format of every field they
utilize.
When data is used from several files,
this process becomes more complex.
Physical View
4-22
Schemas
Describe the logical
structure of a
database
Conceptual Level
Organization wide
view of the data
External Level
Individual users view
of the data
Each view is a
subschema
Internal Level
Describes how data
are stored and
accessed
Description of
records, definitions,
4-23
Database Design
To design a database, you need to
have a conceptual view of the entire
database.
The conceptual view illustrates the
different files and relationships
between the files.
The data dictionary is a blueprint of
the structure of the database and
includes data elements, field types,
4-25
DBMS Languages
Data Definition Language (DDL)
Builds the data dictionary
Creates the database
Describes logical views for each user
Specifies record or field security constraints
Data Manipulation Language (DML)
Changes the content in the database
Creates, updates, insertions, and deletions
Report Writer
Simplifies report creation
Relational Database
Represents the conceptual and external
schema as if that data view were truly
stored in one table.
Conceptual View Example
Types of Attributes
Primary key
is the attribute, or combination of
attributes, that uniquely identifies a
specific row(record) in a table.
Foreign key
Primary Keys
Foreign Key (Customer # is a Foreign key in the
Sales Table because it is a Primary key that uniquely
identifies Customers in the Customer Table). Because of this,
the Sales Table can relate to the Customer Table (see red
arrow above).
4-28
What
are the
invoice
number
s of all
sales
made to
D. Ainge
and who
was the
sales
person
for each
sale?
How
many
televisio
ns were
sold in
October
?
What
are the
names
and
address
es of
custome
rs
buying
televisio
n?
Whar are
the sales
invoice
numbers,
dates,
and
invoice
totals for
October
sales?
Arrange
in
decendin
g order
by sales
amount!
What
are total
sales by
sales
person?