Presentation is loading. Please wait.

Presentation is loading. Please wait.

8/31/99Database Management -- Fall 1999 -- R. Larson Database Models and Introduction to Access University of California, Berkeley School of Information.

Similar presentations


Presentation on theme: "8/31/99Database Management -- Fall 1999 -- R. Larson Database Models and Introduction to Access University of California, Berkeley School of Information."— Presentation transcript:

1 8/31/99Database Management -- Fall 1999 -- R. Larson Database Models and Introduction to Access University of California, Berkeley School of Information Management and Systems SIMS 257: Database Management

2 8/31/99Database Management -- Fall 1999 -- R. Larson Last Time Database concepts and terminology Database Life cycle

3 8/31/99Database Management -- Fall 1999 -- R. Larson Terms and Concepts Database: Enterprise Entity Attributes Data values Records File Key Primary Key

4 8/31/99Database Management -- Fall 1999 -- R. Larson Terms and Concepts Data Independence Models –(1) Levels or views of the Database Conceptual, logical, physical –(2) DBMS types Relational, Hierarchic, Network, Object-Oriented, Object-Relational Metadata

5 8/31/99Database Management -- Fall 1999 -- R. Larson Models (1) Conceptual Model Logical Model External Model Conceptual requirements Conceptual requirements Conceptual requirements Conceptual requirements Application 1 Application 2Application 3Application 4 Application 2 Application 3 Application 4 External Model External Model External Model Internal Model

6 8/31/99Database Management -- Fall 1999 -- R. Larson Terms and Concepts Data Dictionary Data Administration Database Administration Data Steward DA DBA

7 8/31/99Database Management -- Fall 1999 -- R. Larson Database System Life Cycle Growth, Change, & Maintenance 6 Operations 5 Integration 4 Design 1 Conversion 3 Physical Creation 2

8 8/31/99Database Management -- Fall 1999 -- R. Larson Today Models(2): DBMS types –Hierarchical –Network –Relational –Object-Oriented

9 8/31/99Database Management -- Fall 1999 -- R. Larson Database Data Models Hierarchical Model –Similar to data structures in programming languages. Books (id, title) PublisherSubjects Authors (first, last)

10 8/31/99Database Management -- Fall 1999 -- R. Larson Database Data Models Network Model –Provides for single entries of data and navigational “links” through chains of data. SubjectsBooks Authors Publishers

11 8/31/99Database Management -- Fall 1999 -- R. Larson Database Data Models Relational Model –Provides a conceptually simple model for data as relations (typically considered “tables”) with all data visible.

12 8/31/99Database Management -- Fall 1999 -- R. Larson Database Data Models Object Oriented Data Model –Encapsulates data and operations as “Objects” Books (id, title) PublisherSubjects Authors (first, last)

13 8/31/99Database Management -- Fall 1999 -- R. Larson Test Database The DiveShop database contains information for the business operations of a skin & scuba diving shop that: –Organizes trips to particular locations (destinations) with various dive sites –Dive sites have various features including types of marine life found there other features (like shipwrecks) –Rents/Sells equipment to dive customers for particular trips (or to other dive shops)

14 8/31/99Database Management -- Fall 1999 -- R. Larson ER Diagrams We will examine ER diagrams in greater detail later ER Diagrams show Entities (rectangles) and their attributes (ovals) and the relationships between entities (diamonds)

15 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Destination no Site no Site Name Site Notes Site Highlight Distance From Town (M) Distance From Town (Km) Skill Level Visibility(ft) Depth (m) Depth (ft) Sites Visibility (m)

16 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Name Customer no Street State/ProvCity ZIP/Postal Code Country First Contact Phone DiveCust

17 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Destination name Destination no Avg Temp (F) Spring Temp (F) Avg Temp (C) Summer Temp (C) Summer Temp (F) Travel Cost Winter Temp (C) Fall Temp (F) Fall Temp (C) Dest Winter Temp (F) Accommodations Body of Water Night Life

18 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Category Species no Common Name Length (cm) Species Name Length (in) Notes external Graphic external BioLife

19 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Site no Ship Name Category InterestTypeTonnage Length (ft) Beam (m) Beam (ft) Length (m) Shipwrck Cause Comments external Date Sunk Passengers/ Crew Graphic external Survivors Condition

20 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Description Item No Equipment Class Reorder Point On HandCost Sale Price DiveStok

21 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER Entities Customer No Order no Sale Date Ship Via Subtotal Total Invoice Destination CCExpDate CCNumber Payment Method DiveOrds No of People Vacation Cost Return Date Depart Date

22 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER diagram Item no Order no Rental/ Sale QtyPrice Line Total Line Note DiveItem

23 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER diagram Species No Site No BioSite

24 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop ER diagram Ship Via Ship Cost ShipVia

25 8/31/99Database Management -- Fall 1999 -- R. Larson DiveShop ER Diagram Customer No ShipVia Dest Sites BioSite ShipVia ShipWrck BioLife DiveStok DiveItem DiveOrds DiveCust Customer No ShipVia Order No Order No Item No Item No Destination Name Destination Species No Site No Destination no Site No Destination no Species No Site No 1 1 1 1 1 1 1/n 1 1 n n n n n n n n 1

26 8/31/99Database Management -- Fall 1999 -- R. Larson Diveshop Questions How many tons was the sunken ship Delaware? What is customer Karen Ng’s address? At what site might you find a Spotted Eagle Ray? Where is the site Palancar Reef? What sites might Lorraine Vega dive on her trip? Keith Lucas wants to see a shipwreck on his trip. Is he going to the right place? What equipment is Richard Denning getting? What is the cost of the equipment rental for Louis Jazdzewski


Download ppt "8/31/99Database Management -- Fall 1999 -- R. Larson Database Models and Introduction to Access University of California, Berkeley School of Information."

Similar presentations


Ads by Google