Chapter 4
Chapter 4
Chapter Four
Database System ,
Relational Database
and Data Modeling
Introduction
2
a database.
DATABASES
Database
A database is a set
Fact A Fact B
Fact C Fact D
of inter-related,
Fact E Fact F
centrally
coordinated files.
Database
Management
System
Database
The combination of
Fact A Fact B
Fact C Fact D
the database, the
Fact E Fact F
DBMS, and the
application
Database programs that
Management
System
access the
database is
referred to as the
Enrollment Financial Aid Grades
Program Program Program database
system.
DATABASES
The person
Database
Fact A Fact B responsible for the
Fact C Fact D
Fact E Fact F database is the
database
administrator.
Database
Management
As technology
System improves, many
large companies
are developing very
Enrollment Financial Aid Grades
Program Program Program large databases
called data
warehouses.
Database
8
13
Mapping external-level views to conceptual-level schema
Cash
Receipt
programmer
Specify any limitations or constraints on
database.
Saves record, categories record, orders
record, and presents subsets of the database
in response to user queries.
Contain powerful, but easy to use, set of
COURSES
Course ID Course Section Day Time
1234 ACCT-3603 1 MWF 8:30
1235 ACCT-3603 2 TR 9:30
1236 MGMT-2103 1 MW 8:30
STUDENT x COURSE
SCID Student ID Course
333333333-1234 333-33-3333 1234
333333333-1236 333-33-3333 1236
111111111-1235 111-11-1111 1235
111111111-1236 111-11-1111 1235
Cont’d………
20
COURSES
Course ID Course Section Day Time
1234 ACCT-3603 1 MWF 8:30
1235 ACCT-3603 2 TR 9:30
1236 MGMT-2103 1 MW 8:30
STUDENT x COURSE
A primary key is the
SCID
attribute or combination
333333333-1234 of attributes that
333333333-1236 uniquely identifies a
111111111-1235 specific row in a table.
111111111-1236
STUDENTS
Last First Phone
Student ID Name Name No.
333-33-3333 Simpson Alice 333-3333
111-11-1111 Sanders Ned 444-4444
123-45-6789 Moore Artie 555-5555
COURSES
Course ID Course Section Day Time
1234 ACCT-3603 1 MWF 8:30
1235 ACCT-3603 2 TR 9:30
1236 MGMT-2103 1 MW 8:30
STUDENT x COURSE
SCID
333333333-1234 In some tables, two or more attributes
333333333-1236 may be joined to form the primary key.
111111111-1235
111111111-1236
Cont’d……..
23
ADVISORS
Advisor No. Last Name First Name Office No.
1418 Howard Glen 420
1419 Melton Amy 316
1503 Zhang Xi 202
1506 Radowski J.D. 203
ADVISORS
Advisor No. Last Name First Name Office No.
1418 Howard Glen 420
1419 Melton Amy 316
1503 Zhang Xi 202
1506 Radowski J.D. 203
ADVISORS
Advisor No. Last Name First Name Office No.
1418 Howard Glen 420
1419 Melton Amy 316
1503 Zhang Xi 202
1506 Radowski J.D. 203
- In the planning stage, accountants both provide some of the information used to
evaluate the feasibility of the proposed project and participate in making that
decision.
- In the requirements analysis and design stages, accountants participate in
identifying user information needs, developing the logical schemas, designing the
data dictionary, and specifying controls.
- During the implementation stage, accountants can also help test the accuracy of
the new database and the application programs that will use that data.
- Finally, accountants use the database system to process transactions, and
sometimes they even help manage it.
Cont’d………..
35
Data modeling is the process of defining a
database so that it faithfully represents all
aspects of the organization, including its
transactions.
Operation and
Planning
maintenance
Requirements
Data Implementation
modeling analysis
occurs
here
Design Coding
©2003 Prentice Hall Business Publishing, 5-13
Accounting Information Systems, 9/e, Romney/Steinbart
Cont’d………
36
Resource A GET
Inflow Participant Internal Agent
Resource A
Economic
Duality
GIVE
Resource B Outflow Participant Internal Agent
Resource B
events
Identify the resources affected by each event
be identified
The sales event is translated to giving
Participant
Economic
Customer
Duality
Participant
Cash
Cash Stock-flow Participant Cashier
Receipts
47
entities.
Indicate how many instances of one entity can
Cash Sales-
Cash Receipts Sales
Receipts (1, N) (0, N)
Customer
Inventory- (1,N) (1,1) Participant (0,N) Customer
Orders
Orders
(0,N) (1,1)
(0,1) Participant
(0,N)
Inventory- Leads to
Inventory (0,N) Salesperson
Sales (0,N)
(0,1)
(1,N)
Participant
(1,1)
Sales
Questions?
Thank you!