Professional Documents
Culture Documents
Konsep Dasar Database System
Konsep Dasar Database System
PENGANTAR DATABASE
FILE VS. DATABASES
STUDENTS
Phone
Student ID Last Name First Name Number Birth Date
STUDENTS
Phone
Student ID Last Name First Name Number Birth Date
STUDENTS
Phone
Student ID Last Name First Name Number Birth Date
Database adalah
Database gabungan file yang saling
Fact A Fact B
Fact C Fact D berhubungan dan
Fact E Fact F dikoordinasi secara
terpusat
Database
Management
System
Database
Database system
Fact A Fact B adalah kombinasi
Fact C Fact D database, DBMS, dan
Fact E Fact F
program aplikasi yang
dapat mengakses data
Database base
Management
System
• Achieved by combining
master files into larger
pools of data accessible by
many programs.
IMPORTANCE AND ADVANTAGES
OF DATABASE SYSTEMS
Database technology provides the following benefits to
organizations:
Data integration
Data sharing
Jr.
38%
Database
Logical View—User A Logical View—User B
Scholarship Distribution
Enrollment by Class Fr.
5%
Sr. Soph.
33% 24%
Jr.
38%
DBMS
The operating system
Operating translates DBMS
System requests into
instructions to
physically retrieve
data from various
Database disks.
DATABASE SYSTEMS
Schemas
A schema describes the logical structure of a database.
There are three levels of schema.
Conceptual level
Cash
Receipt
Schemas
A schema describes the logical structure of a database.
There are three levels of schema.
Conceptual level
External level
Cash
Receipt
Schemas
A schema describes the logical structure of a database.
There are three levels of schema.
Conceptual level
External level
Internal level
• A low-level view of the database.
• It describes how the data are actually
stored and accessed including:
– Record layouts
– Definitions
– Addresses
– Indexes
Subschema--User A Subschema--User B Subschema--User C
Smith . . . A
Jones . . . B
Arnold . . .D
Cash
Receipt
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
STUDENTS Each row is
Last First Phone called a tuple,
Student ID Name Name No. which rhymes
333-33-3333 Simpson Alice 333-3333 with “couple.”
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
333333333-1236
111111111-1235
111111111-1236
Each row
STUDENTS
contains data
Last First Phone
about a specific
Student ID Name Name No.
occurrence of the
333-33-3333 Simpson Alice 333-3333
type of entity in
111-11-1111 Sanders Ned 444-4444
the table.
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
333333333-1236
111111111-1235
111111111-1236
STUDENTS Each column in a
Last First Phone table contains
Student ID Name Name No. information
333-33-3333 Simpson Alice 333-3333 about a specific
111-11-1111 Sanders Ned 444-4444 attribute of the
123-45-6789 Moore Artie 555-5555 entity.
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
333333333-1236
111111111-1235
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
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
STUDENTS
First Advisor
Student ID Last Name Name Phone No. No.
333-33-3333 Simpson Alice 333-3333 1418
111-11-1111 Sanders Ned 444-4444 1418
123-45-6789 Moore Artie 555-5555 1503
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
• What happens if you have a new student to add, but he hasn’t signed
up for any courses yet?
• Or what if there is a new class to add, but there are no students
enrolled in it yet? In either case, the record will be partially blank.
• This problem is referred to as an insert anomaly.
Last First
Student ID Name Name Phone No. Course No. Section Day Time
333-33-3333 Simpson Alice 333-3333 ACCT-3603 1 M 9:00 AM
333-33-3333 Simpson Alice 333-3333 FIN-3213 3 Th 11:00 AM
333-33-3333 Simpson Alice 333-3333 MGMT-3021 11 Th 12:00 PM
111-11-1111 Sanders Ned 444-4444 ACCT-3433 2 T 10:00 AM
111-11-1111 Sanders Ned 444-4444 MGMT-3021 5 W 8:00 AM
111-11-1111 Sanders Ned 444-4444 ANSI-1422 7 F 9:00 AM
123-45-6789 Moore Artie 555-5555 ACCT-3433 2 T 10:00 AM
123-45-6789 Moore Artie 555-5555 FIN-3213 3 Th 11:00 AM
• If Ned withdraws from all his classes and you eliminate all three of
his rows from the table, then you will no longer have a record of Ned.
If Ned is planning to take classes next semester, then you probably
didn’t really want to delete all records of him.
• This problem is referred to as a delete anomaly.
DATABASE SYSTEMS AND THE FUTURE
OF ACCOUNTING
Database systems dapat mempengaruhi sifat
fundamental dari akuntansi :
Memiliki potensi untuk mengubah sifat pelaporan eksternal
Contoh: External users diberikan akses untuk bisa mengkopi data base
perusahaan, sebagai ganti dari laporan keuangan tradisional
DATABASE SYSTEMS AND THE
FUTURE OF ACCOUNTING
Pengaruh adanya database dalam hal bagaimana
informasi akuntansi digunakan dalam pengambilan
keputusan :
The ability to accommodate multiple views of the same
underlying phenomenon.
The ability to integrate financial and operational data.