Académique Documents
Professionnel Documents
Culture Documents
Chapter 12
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 1
Learning Objective 1
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 2
Introductory Terminology
These are used interchangeably to denote the smallest block of data that will be stored and retrieved.
12 3
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
Introductory Terminology
A field may be a single character or number, or it may be composed of many characters or numbers. Customer name Employee social security number Customer account number
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 4
Introductory Terminology
A vendor
An invoice
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 5
Data Occurrences
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 6
Data Occurrences
For the record EMPLOYEE (NAME, NUMBER, AGE) we might have the occurrence EMPLOYEE (Brown, 111222333, 33)
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 7
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 10
Repeated Groups
Repeated groups are related groups of fields that repeat themselves in variable-length records. Segments Groups Nodes
PART
SUPPLIER
LOCATION
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 12
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
Learning Objective 2
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 14
Conceptual level
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 15
Logical level
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 16
Physical level
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 17
Conceptual Architecture
The Entity-Relationship (E-R) data model is a conceptual model for depicting the relationships between segments in a database.
Conceptual Architecture
The object-oriented modeling technique (OMT) views the components of the system being modeled as object classes. Object class corresponds to a segment. Object corresponds to a particular instance.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 19
HAND_TOOLS USAGE
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 20
Learning Objective 3
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 21
The relationships that exist between the segments in the database are determined by the logical data structure, also called the schema or database model.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 22
2. Network structures
3. Relational models
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood 12 23
J
L
K
M
12 24
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
G
J
H
K
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 25
Both trees and networks are implemented with imbedded pointer fields.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 26
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 28
List Structure
Location of first record Attribute
2 1 Red Blue
Index
Records
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 29
Ring Structure
Location of first record Attribute
2 3 Va Ky
Index
Records
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 30
What is the relational model? It is a logical data structure that views the database as a collection of two-dimensional tables. There are no complicated pointers or lists.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood 12 31
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 32
Learning Objective 4
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 34
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 35
In a sequential access file, records can only be accessed in their predefined sequence. Sequential file organization is useful when batch processing is required.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 36
File File
Disc o nn e c t Disc o n ne c t
He lp He lp
Indexed Files
File
Disc o nn e c t
He lp
6 4 b yte s fro m p s2 (1 0 0 .1 0 0 .1 0 0 .5 ) : ic m p _se q = 9 1 , ----p s2 PING Sta tistic ---9 2 p a c ke ts tra n sm itte d , 9 2 p a c ke ts re c e ive d , 0% ro u n d -trip (m s) m in /a u g /m a x = 0 /0 /2 0 </h /h e /zu [< oo mm e /zu i> i> ]
File
Ho st
O p tio ns
Pin g - IBM He lp
An index file is one where an attribute has been extracted from the records and used to build a new file whose purpose is to provide an index to the original file. One important type of indexed file is an indexed-sequential file.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood 12 37
File File
Disc o nn e c t Disc o n ne c t
He lp He lp
Indexed Files
File
Disc o nn e c t
He lp
6 4 b yte s fro m p s2 (1 0 0 .1 0 0 .1 0 0 .5 ) : ic m p _se q = 9 1 , ----p s2 PING Sta tistic ---9 2 p a c ke ts tra n sm itte d , 9 2 p a c ke ts re c e ive d , 0% ro u n d -trip (m s) m in /a u g /m a x = 0 /0 /2 0 </h /h e /zu [< oo mm e /zu i> i> ]
File
Ho st
O p tio ns
Pin g - IBM He lp
An indexed-sequential file is a sequential file that is stored on a DASD and is both indexed and physically sorted on the same field. These files are frequently referred to as ISAM files.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 38
File File
Disc o nn e c t Disc o n ne c t
He lp He lp
Indexed Files
File
Disc o nn e c t
He lp
6 4 b yte s fro m p s2 (1 0 0 .1 0 0 .1 0 0 .5 ) : ic m p _se q = 9 1 , ----p s2 PING Sta tistic ---9 2 p a c ke ts tra n sm itte d , 9 2 p a c ke ts re c e ive d , 0% ro u n d -trip (m s) m in /a u g /m a x = 0 /0 /2 0 </h /h e /zu [< oo mm e /zu i> i> ]
File
Ho st
O p tio ns
Pin g - IBM He lp
An ISAM file structurally consists of three distinct areas: The index The prime area The overflow area
Track Index
0300 Prime Area
Track address Track address
1005
Key
0301
Data Highest key on track
1002
--------
Record found
0301
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 40
Data records
Randomizing computation ( 7)
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
Remainder Displacement after factor + = Record division (initial address storage Record Key by seven of file area) address 1 15 1 10 11 2 17 3 10 13 3 11 4 10 14 4 22 1 10 11
Overflow
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 43
Contents Record 1 KEY 15* Record 2 KEY 17 Record 3 KEY 11 Record 4 KEY 22
Overflow indicator
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 44
Describe the considerations that are appropriate to the design of computer-based files and databases.
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood 12 47
Application One X Y A B
Application Two X Y C D
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 51
X
Database dictionary and access codes Data manipulation routines
D X Y A B
Logical file 1 Application one
Database system
X Y A D
X Y C D
Logical file 3 Logical file 2 Security screened inquiry file Application two
12 52
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 54
End of Chapter 12
2004 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, by Bodnar/Hopwood
12 55