Introduction to Database Technology Elmasri/Navathe ch 1-2 - - PowerPoint PPT Presentation

introduction to database technology
SMART_READER_LITE
LIVE PREVIEW

Introduction to Database Technology Elmasri/Navathe ch 1-2 - - PowerPoint PPT Presentation

DATABASE DESIGN I - 1DL300 Spring 2013 An Introductory Course on Database Systems http://www.it.uu.se/edu/course/homepage/dbastekn/vt13/ Uppsala Database Laboratory Department of Information Technology, Uppsala University, Uppsala, Sweden


slide-1
SLIDE 1
slide-2
SLIDE 2
slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17
slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20
slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23
slide-24
SLIDE 24
slide-25
SLIDE 25
slide-26
SLIDE 26
slide-27
SLIDE 27
slide-28
SLIDE 28
slide-29
SLIDE 29
slide-30
SLIDE 30
slide-31
SLIDE 31
slide-32
SLIDE 32
slide-33
SLIDE 33
slide-34
SLIDE 34
slide-35
SLIDE 35

2013-01-21 1 Silvia Stefanova, UDBL - IT - UU

DATABASE DESIGN I - 1DL300

Spring 2013

An Introductory Course on Database Systems

http://www.it.uu.se/edu/course/homepage/dbastekn/vt13/ Uppsala Database Laboratory Department of Information Technology, Uppsala University, Uppsala, Sweden

slide-36
SLIDE 36

2013-01-21 2 Silvia Stefanova, UDBL - IT - UU

Introduction to Database Technology

Elmasri/Navathe ch 1-2 Padron-McCarthy/Risch ch 1 Sobhan Badiozamany Silvia Stefanova

Department of Information Technology Uppsala University, Uppsala, Sweden

slide-37
SLIDE 37

2013-01-21 3 Silvia Stefanova, UDBL - IT - UU

Outline

  • 1. Data Model, Database Schema
  • Categories of data models
  • Database schemas and instances
  • 2. Data Independence
  • Three-schema architecture
  • Logical independence
  • Physical independence
  • 3. Database Languages
  • 4. Classification of DBMS
  • 5. To Summarize
slide-38
SLIDE 38

2013-01-21 4 Silvia Stefanova, UDBL - IT - UU

Outline

  • 1. Data Model, Database Schema
  • Data models, categories of data models
  • Database schemas and instances
  • 2. Data Independence
  • Three-schema architecture
  • Logical independence
  • Physical independence
  • 3. Database Languages
  • 4. Classification of DBMS
  • 5. To Summarize
slide-39
SLIDE 39

2013-01-21 5 Silvia Stefanova, UDBL - IT - UU

Data Model ???

slide-40
SLIDE 40

2013-01-21 6 Silvia Stefanova, UDBL - IT - UU

Data Model

  • Data Model: A collection of concepts that can be used to

describe the structure of database

  • Data Model consists of
  • Set of concepts: data types, relationships, constraints
  • Set of basic operations for specifying retrievals and updates on

the database

  • Every database has a data model which makes it

possible to “hide” the physical representation of data

slide-41
SLIDE 41

2013-01-21 7 Silvia Stefanova, UDBL - IT - UU

Categories of data models

  • High-level (conceptual) : close to how users perceive

data

  • ER (Entity-Relationship) model
  • Low-level (physical): details of how data is stored on

computers

  • Representational (implementation): in between

conceptual and physical

  • Relational (ORACLE, DB2, SQL Server, MySQL, Mimer)
  • Object-oriented (ObjectStore, Objectivity, Versant, Poet)
  • Object-relational (Informix, Odapter, DB2)
  • Hierarchical (IMS)
  • Network (IDMS)
slide-42
SLIDE 42

2013-01-21 8 Silvia Stefanova, UDBL - IT - UU

What is the difference between database and database description ?

slide-43
SLIDE 43

2013-01-21 9 Silvia Stefanova, UDBL - IT - UU

Database Schema and Instances

  • Database schema: the database description specified

during the database design and not expected to change

  • The actual data in the database may change frequently
  • Database instance (state): the data in the database at a

particular moment. Every change of data creates a new instance of the database.

  • Valid state: satisfies the structure and constraints in the

database schema

  • Meta-data: description of the schema (data about data)
slide-44
SLIDE 44

2013-01-21 10 Silvia Stefanova, UDBL - IT - UU

Outline

  • 1. Data Model, Database Schema
  • Categories of data models
  • Database schemas and instances
  • 2. Data Independence
  • Three-schema architecture
  • Logical independence
  • Physical independence
  • 3. Database Languages
  • 4. Classification of DBMS
  • 5. To Summarize
slide-45
SLIDE 45

2013-01-21 11 Silvia Stefanova, UDBL - IT - UU

Three-schema Architecture

Conceptual schema

Database instance Internal level Conceptual level External level End users view1 view2 … … … viewn

Internal schema

slide-46
SLIDE 46

2013-01-21 12 Silvia Stefanova, UDBL - IT - UU

Three-schema Architecture

  • Internal level
  • Described the physical storage structure of the database
  • Uses a physical data model (internal schema)
  • Conceptual level
  • Describes the structure of the whole database for community
  • f users; describes entities, data types, relationships, user
  • perations
  • Uses a representation data model
  • External (view) level
  • Describes the part of the database that a particular user group

is interested in; hides the rest from that group

  • Has a number of external schemas
slide-47
SLIDE 47

2013-01-21 13 Silvia Stefanova, UDBL - IT - UU

What is the goal with the three-schema architecture?

slide-48
SLIDE 48

2013-01-21 14 Silvia Stefanova, UDBL - IT - UU

Data Independence

  • Data Independence: The capacity to change the

schema at one level of a database system without having to change at the next higher level

slide-49
SLIDE 49

2013-01-21 15 Silvia Stefanova, UDBL - IT - UU

Data Independence

  • Logical Independence: The capacity to change the

conceptual schema without having to change the external schema

  • Example: Add another field to a conceptual schema
  • Physical Independence: The capacity to change the

internal schema without having to change the conceptual schema

  • Example: Put an access path(index) to reorganize the files
slide-50
SLIDE 50

2013-01-21 16 Silvia Stefanova, UDBL - IT - UU

Outline

  • 1. Data Model, Database Schema
  • Categories of data models
  • Database schemas and instances
  • 2. Data Independence
  • Three-schema architecture
  • Logical independence
  • Physical independence
  • 3. Database Languages
  • 4. Classification of DBMS
  • 5. To Summarize
slide-51
SLIDE 51

2013-01-21 17 Silvia Stefanova, UDBL - IT - UU

Database Languages

  • Database Language: Generic term for a class of

languages used for defining, communicating with or manipulating a database.

  • Storage Definition Language (SDL) – to specify internal

schema

  • Data Definition Language (DDL) – to specify

conceptual schema

  • View Definition Language (VDL) – to specify user

views

  • Data Manipulation Language (DML) – to manipulate

the data: insert, delete , update)

slide-52
SLIDE 52

2013-01-21 18 Silvia Stefanova, UDBL - IT - UU

Database Languages

  • In the DDL the database administrator define the

internal and conceptual schema and in this manner the database is designed. Subsequent modifications in the schema design is also made in DDL.

  • The DML used by DB users and application programs

retrieve, add, remove, or alter the information in the database.

  • SQL represents a combination of DDL, VDL and DML
slide-53
SLIDE 53

2013-01-21 19 Silvia Stefanova, UDBL - IT - UU

Outline

  • 1. Data Model, Database Schema
  • Categories of data models
  • Database schemas and instances
  • 2. Data Independence
  • Three-schema architecture
  • Logical independence
  • Physical independence
  • 3. Database Languages
  • 4. Classification of DBMS
  • 5. To Summarize
slide-54
SLIDE 54

2013-01-21 20 Silvia Stefanova, UDBL - IT - UU

Classification of DBMS

  • Criteria data model:
  • Relational DBMS
  • Object-oriented DBMS
  • Object-relational DBMS
  • Graph DBMS
  • Criteria number of sites on which database is distributed
  • Centralized DBMS
  • Distributed DBMS
slide-55
SLIDE 55

2013-01-21 21 Silvia Stefanova, UDBL - IT - UU

Classification of DBMS

  • Criteria number of users:
  • Single-user DBMS
  • Multi-user DBMS
  • Criteria purpose
  • General purpose DBMS
  • Special-purpose DBMS
slide-56
SLIDE 56

2013-01-21 22 Silvia Stefanova, UDBL - IT - UU

Outline

  • 1. Data Model, Database Schema
  • Categories of data models
  • Database schemas and instances
  • 2. Data Independence
  • Three-schema architecture
  • Logical independence
  • Physical independence
  • 3. Database Languages
  • 4. Classification of DBMS
  • 5. To Summarize
slide-57
SLIDE 57

2013-01-21 23 Silvia Stefanova, UDBL - IT - UU

Summary

  • Data model
  • Database schema, database instance
  • Data independence
slide-58
SLIDE 58

2013-01-21 24 Silvia Stefanova, UDBL - IT - UU

Components of a DBMS (Figure 2.3 Elmasri/Navathe)