25
Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Embed Size (px)

Citation preview

Page 1: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2Introduction to

Database Development

Database Processing

David M. Kroenke© 2000 Prentice Hall

Page 2: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Database Components

Page 26 Figure 2-1 © 2000 Prentice Hall

Page 3: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Types of Data

• User data• Metadata• Indexes• Application Metadata

Page 25

Page 4: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

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

Page 5: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

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

Page 6: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Indexes

• Improve performance• Improve accessibility• (Overhead data)

Page 28

Page 7: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Page 29

Application Metadata

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

Page 8: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Page 29

The DBMS

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

Page 9: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

The Design Tools Subsystem

Page 29

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

• Programming Languages– macros– languages

Page 10: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Run-Time Subsystem

Chapter 1

Page 30

• Processes database components created by design tools

Page 11: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

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

Page 12: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

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

Page 13: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Table Design in Access 2000

Page 32 Figure 2-4© 2000 Prentice Hall

Page 14: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Relationships in Access 2000

Page 32 Figure 2-5© 2000 Prentice Hall

Page 15: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Page 34

Components of Applications

• Forms• Queries• Reports• Menus• Application Programs

Page 16: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Forms in Access 2000

Page 34 Figure 2-6a© 2000 Prentice Hall

Page 17: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Forms in Access 2000

Page 34 Figure 2-6b© 2000 Prentice Hall

Page 18: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Forms in Access 2000

Page 34 Figure 2-6c© 2000 Prentice Hall

Page 19: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Queries in Access 2000

Page 34 Figure 2-8

Page 20: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Reports in Access 2000

Page 34 Figure 2-10

Page 21: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Menus in Access 2000

Page 34 Figure 2-12

Page 22: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Visual Basic in Access 2000

Page 34 Figure 2-14

Page 23: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

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)

Page 24: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

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)

Page 25: Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall

Chapter 2

© 2000 Prentice Hall

Data Models

Page 44

• Entity-Relationship Model• Semantic Object Model