11
Databases

Databases. Basic Data Management Concepts 2 Database Collection of all the data related to a particular topic or purpose -- for example, student data,

Embed Size (px)

Citation preview

Page 1: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

Databases

Page 2: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

Basic Data Management Concepts

2

Database Collection of all the data related to a particular topic

or purpose -- for example, student data, customer data or product data

Database management system (DBMS) Software used to access database

Page 3: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

When do I interact with databases

Register for classesShoppingFinding midi files on the CIS 1055 websiteFlight registration systemsCherry & White PagesPurchasing a book from Amazon.comPaying your phone bill on line

3

Page 4: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

Data Organization

Garner Julia30 Simpson Ave 555-3432

Garrett Allen 1222 Elm Street 555-9876

Gieger Carl 25 West Ave 555-2702

Geiser Gary712 Chestnut 555-1112

Goucher Gerard 17 Asbury Ave 555-2956

4RecordsRecords

FieldsFields

File or TableFile or Table

A collection of one or more related tables DatabaseDatabase

Page 5: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

The Organization/Hierarchy of Data5

Field Name, number, or combination of characters that

describes some aspect of an object

Record Collection of related fields

File Collection of related records

Database Collection of integrated and related files

Page 6: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

6

Page 7: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

What can I do with a DBMS

Enter data quickly and easilyOrganize records in different waysLocate specific records quicklyEliminate dataConnect files with related informationCreate ReportsCreate Queries

7

Page 8: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

The Database Approach to Data Management

8

Database approach Multiple application programs share a

pool of related data Increased flexibility in the use of data Requires a database management

system (DBMS)

Page 9: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

Queries

Built thru SQL (Structured Query Language)First Name, Last Name and Annual Fee

Milton Brewer $90.00Louella Drake $40.00Elena Gupta $55.00Adelbert Ruiz $80.00Benjamin Tu $37.0

SQL:SELECT FIRSTNAME, LASTNAME, ANNUAL FEEFROM: MEMBER, MEMBERSHIP PLANSWHERE MEMBER.MEMBERSHIP CODE =

MEMBERSHIP PLANS.MEMBERSHIP CODEORDER BY LAST NAME

9

Page 10: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

Relational Database10

Sales No Territory

112 1

113 2

114 3

115 4

116 5

117 6

Sales No LName FName

112 Belle Jamie

115 Morris Dave

114 Allan Wil

113 Shaw Danny

116 Michaels Wilson

117 Crozier Judy

Sales No LName FName Territory

112 Belle Jamie 1

113 Shaw Danny 2

114 Allen Will 3

Page 11: Databases. Basic Data Management Concepts 2 Database  Collection of all the data related to a particular topic or purpose -- for example, student data,

Database Structures11

Types of Databases Relational Object-Oriented Hierarchical, Network, Multi-Dimension