chapter 2 introduction to database development database processing david m. kroenke © 2000 prentice...

Post on 23-Dec-2015

357 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Chapter 2Introduction to

Database Development

Database Processing

David M. Kroenke© 2000 Prentice Hall

Database Components

Page 26 Figure 2-1 © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Types of Data

• User data• Metadata• Indexes• Application Metadata

Page 25

Chapter 2

© 2000 Prentice Hall

User Data

• A table of data called a relation• Columns are fields or attributes• Rows are entities• Relations must be structured

properly

Page 26

Chapter 2

© 2000 Prentice Hall

Metadata

Page 27

“A description of the structure of the database”

• System tables store metadata– number of tables and table names– number of fields and field names– primary key fields– field names, data types, and length

Chapter 2

© 2000 Prentice Hall

Indexes

• Improve performance• Improve accessibility• (Overhead data)

Page 28

Chapter 2

© 2000 Prentice Hall

Page 29

Application Metadata

• Stores the structure and format of– forms– reports– queries– other application components

Chapter 2

© 2000 Prentice Hall

Page 29

The DBMS

• Design Tools Subsystem• Run-Time Subsystem• DBMS Engine

Chapter 2

© 2000 Prentice Hall

The Design Tools Subsystem

Page 29

• Tools to design and develop– tables– forms– queries– reports

• Programming Languages– macros– languages

Chapter 2

© 2000 Prentice Hall

Run-Time Subsystem

Chapter 1

Page 30

• Processes database components created by design tools

Chapter 2

© 2000 Prentice Hall

DBMS Engine

Page 30

• Intermediary between the design tools and run-time subsystems and the data

• Also handles . . .– transaction management– locking– backup and recovery

Chapter 2

© 2000 Prentice Hall

Page 30

Database Schema

• Defines a database’s structure– tables - subjects within the database– relationships - one-to-many or 1:N– domains - set of values a column may

have– business rules - restrictions on data

values

Table Design in Access 2000

Page 32 Figure 2-4© 2000 Prentice Hall

Relationships in Access 2000

Page 32 Figure 2-5© 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Page 34

Components of Applications

• Forms• Queries• Reports• Menus• Application Programs

Forms in Access 2000

Page 34 Figure 2-6a© 2000 Prentice Hall

Forms in Access 2000

Page 34 Figure 2-6b© 2000 Prentice Hall

Forms in Access 2000

Page 34 Figure 2-6c© 2000 Prentice Hall

Queries in Access 2000

Page 34 Figure 2-8

Reports in Access 2000

Page 34 Figure 2-10

Menus in Access 2000

Page 34 Figure 2-12

Visual Basic in Access 2000

Page 34 Figure 2-14

Chapter 2

© 2000 Prentice Hall

Database Development Process Terminology

Page 41

• Prototype - sample database• Top-down development - general

to specific (global perspective)• Bottom-up development - specific

to general (faster, less risky)

Chapter 2

© 2000 Prentice Hall

Data Modeling

Page 42

• Interviewing users• documenting requirements• building a data model• building a database prototype• a process of inference (working

backwards)

Chapter 2

© 2000 Prentice Hall

Data Models

Page 44

• Entity-Relationship Model• Semantic Object Model

top related