AIS Chapter-4
AIS Chapter-4
• Field
• Attributes about
an entity
• Record
• Related group of
fields
• File
• Related group of
records
• Database
• Related group of
files
Advantages of Database Systems
• Data Integration
• Files are logically combined and made accessible to various systems.
• Data Sharing
• With data in one place it is more easily accessed by authorized users.
• Minimizing Data Redundancy and Data Inconsistency
• Eliminates the same data being stored in multiple files, thus reducing inconsistency in
multiple versions of the same data.
• 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.
• Cross-Functional Analysis
• Relationships between data from various organizational departments can be more easily
combined.
Database Terminology
• Physical View
• Depends on explicitly knowing:
• How is the data actually arranged in a file
• Where is the data stored on the computer
• Logical View
• A Schema separates storage of data from use of the data
• Unnecessary to explicitly know how and where data is stored.
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,
addresses, and indexes
DBMS Languages
• Primary Key
• An attribute or combination of attributes that can be used to uniquely
identify a specific row (record) in a table.
• Foreign Key
• An attribute in one table that is a primary key in another table.
• Used to link the two tables
Database Design Errors
Conceptual
System Analysis Physical Design
Design
• Systems Analysis
• Initial planning to determine the need for and feasibility of developing a new system
• Judgments about the proposal’s technological and economic feasibility
• Identify user information needs
• Define the scope of the proposed new system
• Gather information about the expected number of users and transaction volumes to make
preliminary decisions about hardware and software requirements
• Conceptual Design
• Developing the different schemas for the new system at the conceptual, external, and internal
levels
The System Analysis Process (cont’d)
• Physical Design
• Translating the internal-level schema into the actual database structures that will be implemented
in the new system
• New applications are developed
• Implementation and Conversion
• Includes all the activities associated with transferring data from existing systems to the new
database AIS
• Testing the new system
• Training employees
• Maintaining the New System
Data Modeling
• One-to-Many:
• Many-to-Many:
Implementing an REA Model in a Relational Database
REA Diagram—Revenue Cycle
REA Diagram—Expenditure Cycle
REA Diagram—Payroll Cycle
REA Redundancies
Revenue Cycle
Cardinality Effect of Merging Resources
The cardinality between Disburse Cash and Supplier and Employee (as payee) is now 0
to 1, that is, a disbursement can be made to the supplier or the employee but not both!
Rules for Creating Integrated REA Diagram
• Journals
• Information contained in event tables
• Ledgers
• Information contained in resource tables
• Financial statements
• Information contained in resources and
• Information on imbalances
• Accounts receivable
• Sales transactions for which customer payments have not yet been
received
• Accounts payable
• Purchases from suppliers that have not yet been paid for
End of Chapter
?