1. Trang chủ
  2. » Giáo án - Bài giảng

Core concepts of accounting information systems 13 by simkin norman chapter 07

41 320 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 41
Dung lượng 1,47 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

What is a Database?• Collection of organized data • Used by many different computer applications • Manipulated by database management systems DBMS... Record Structures• Data fields in ea

Trang 1

Prepared by Paula Funkhouser University of Nevada, Reno

Core Concepts of Accounting Information Systems, 13th Edition

Mark G Simkin ● Jacob M Rose ● Carolyn S Norman

Database Design

Chapter 7

Trang 2

Chapter 7: Database Design

Trang 3

• Uses of a modern AIS

– Systematically record data

– Provide convenient and useful formats

– Easy access to information

Trang 4

What is a Database?

• Collection of organized data

• Used by many different computer applications

• Manipulated by database management systems (DBMS)

Trang 7

Storing Data in Databases

Data must be stored and organized

Trang 9

Record Structures

• Data fields in each record of a database table

• Structure is usually fixed

• Example

Trang 10

Database Keys

• Primary Key

– Unique to each record

• Foreign Keys

– Enable referencing of one or more records

– Matches primary key of related table

Trang 11

Records Combined Into Report

Trang 12

Additional Database Issues

Administration

 Database Administrator

Documentation

 Includes a variety of descriptions

 Structures, Contents, Security Features

 Data Dictionary

 Metadata

Trang 13

Data Dictionary Example

Trang 14

Additional Database Issues

• Data Integrity

– Data Integrity controls

– Designed by database developers

• Processing Accuracy and Completeness

– Transaction controls

– Ensures accurate transaction processing

Trang 15

Additional Database Issues

• Concurrency

– Concurrency controls

– Prevent multi-user access at same time

• Backup and Security

– Ability to recreate data

– Prevent unauthorized access

– View controls

Trang 19

Steps in Developing Databases

Trang 20

Steps in Developing Databases

with REA

• Create Entity-Relationship Diagrams

• Identify Attributes of Entities

• Convert E-R Diagrams into Database Tables

Trang 21

Identify Events and Entities

Trang 22

Entity Examples

Trang 24

 Occurrence of one entity

 Associated with occurrence of one event of another entity

Trang 25

Cardinality Relationships

Trang 26

– Rectangles represent entities

– Connecting lines represent relationships

Trang 27

E-R Diagram Example

Trang 28

Relationship Tables

• Provide greater flexibility

• Need for Relationship Tables

 Linking tables with foreign keys

 Many-to-many relationships

Trang 29

Relationship Tables

Trang 30

Schematic of Database Tables

Trang 33

• Normalization

– Methodology ensuring attributes are stored in most

appropriate tables

– Design promotes accuracy

– Avoids redundancy of data storage

• Levels

– First normal form

– Second normal form

Trang 34

Unnormalized Data

Trang 35

First Normal Form

• In First Normal Form (1 NF) when:

– All data fields are singular

– Each attribute has one value

• Problems

– Data redundancy

– Insertion anomaly

– Deletion anomaly

Trang 36

First Normal Form Example

Trang 37

Second Normal Form

• In Second Normal Form (2 NF) when:

– It is in 1 NF

– All data items depend on primary record key

• Benefits

– More efficient design

– Eliminates data redundancy

Trang 38

Second Normal Form Example

Trang 39

Third Normal Form

• In Third Normal Form (3 NF) when:

– It is in 2 NF

– Does not contain transitive dependencies

– Data field A does not determine data field B

• Ultimate Goal

– Create database in 3 NF

Trang 40

Third Normal Form Example

Trang 41

Study Break #5

A database is in third normal form (3 NF) if it is second normal form and:

A All the data attributes in a record are well-defined

B All the data attributes in a record depend on the record key

C The data contains no transitive dependencies

D The data can be stored in two or more separate tables

Ngày đăng: 15/05/2017, 11:43

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm