System Concepts and Architecture Rose-Hulman Institute of Technology Curt Clifton.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

the Entity-Relationship (ER) Model
Overview of Database Systems CPSC 315 – Programming Studio Spring 2009 Team Project 1, Lecture 1.
Chapter 4 Notes. Entity-Relationship Model E/R Diagrams Weak Entity Sets Converting E/R Diagrams to Relations.
Data - Information - Knowledge
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Chapter 2 Database Environment.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
From ER Diagrams to the Relational Model Rose-Hulman Institute of Technology Curt Clifton.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Chapter 2 Database Environment Pearson Education © 2014.
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
Chapter 2 Database System Concepts and Architecture
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Data Modeling Using the Entity-Relationship Model
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 1 Database System Architecture.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
ICOM 5016 – Introduction to Database Systems Lecture 4 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CSC271 Database Systems Lecture # 4.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Entity-Relationship Data Model N. Harika Lecturer(csc)
2. Database System Concepts and Architecture
Databases : Entity-Relationship Model 2007, Fall Pusan National University Ki-Joune Li These slides are made from the materials that Prof. Jeffrey D. Ullman.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Entity-Relationship Model Using High-Level Conceptual Data Models for Database Design Entity Types, Sets, Attributes and Keys Relationship Types, Sets,
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 2-1 Data Models Data Model: A set.
Entity-Relationship Model
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
CPSC 603 Database Systems Lecturer: Laurie Webster II, M.S.S.E., M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 2 Introduction to a First Course in Database Systems.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
1 Chapter 1 Introduction to Databases Transparencies.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The concept of Data, Information and Knowledge  The fundamental terms:  Database and database system  Database.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 2 Database Environment.
1 Entity Relationship Diagram. ER proposed by Peter Chen ER diagram is widely used in database design Represent conceptual level of a database.
High-level Database Models Prof. Yin-Fu Huang CSIE, NYUST Chapter 4.
A short revision on entity- relationship modelling.
A short review on entity- relationship modelling.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Data Modeling Using the Entity- Relationship (ER) Model
N-Tier Architecture.
Chapter 2 Database System Concepts and Architecture
Database System Concepts and Architecture
CPSC-310 Database Systems
The Entity-Relationship Model
Chapter 2 Database Environment Pearson Education © 2009.
Data, Databases, and DBMSs
Database Environment Transparencies
Presentation transcript:

System Concepts and Architecture Rose-Hulman Institute of Technology Curt Clifton

Data Model  A set of concepts to describe Database structure Basic operations on the data

Categories of Data Models  Conceptual Closest to users’ views  Implementation Intermediate level for programmers  Physical Actual hardware level

Database Schema  A description of the database  Not the actual data in it  Tends to change seldom  Shown with a Schema Diagram

Database State  Actual content at an instant in time  Every change results in a new state  DBMS tries to ensure only valid states occur

Three-Schema Architecture  Goals: Support program-data independence Represent multiple views of data

The Three Schemas  Internal schema Describes storage with physical data model  Conceptual schema Describes entire database structure with conceptual or implementation data model  External schemas Describe user views typically with same data model

Data Independence  Two kinds: Logical: change conceptual schema without changing external schemas Physical: change internal schema without changing conceptual  Just update mappings

Database System Architectures  Centralized All processing on one machine Mainframe + dumb terminals  Client-Server Specialized server machines for each function Smart client machines provide interfaces Connected via some sort of network

Two Tier Client-Server  Client runs UI and application programs  Uses API to connect directly to DBMS  Perhaps multiple DBMS

Three Tier Client-Server  Intermediate layer Application Server or Web Server  Advantages Security Scalability  Disadvantage Complexity

Entity-Relationship Model Rose-Hulman Institute of Technology Curt Clifton

Entity-Relationship Model  Lets us sketch database designs Sketches called ER Diagrams Simple enough share with customers  Can convert sketches into implementations Conversion is easy (with practice)

Entity Sets  Entity: a “thing” that database tracks  Entity set: a collection of similar entities  Attribute: property of an entity Simple values, like integers or strings All entities in set have same properties (though different values)

Entity Set Notation Entity Set Name Attribute 1 Attribute 2 Attribute 3 Entity set names are usually singular, i.e. “Employee” not “Employees”

Relationships  Connect two (or more) entity sets  Notation: Try to make verbs read left-to-right, top-to- bottom Entity Set 1Entity Set 2 Verbs

Values  Entity set value: The set of entities in it  Relationship value: A set of pairs (or triples, …) with one element from each related entity set

Multi-way Relationships  Connect more than two entity sets  Useful for more complex relationships

Relationship Constraints  One-One: Entity of first set can connect to just one entity in second set, and vice versa Entity Set 1Entity Set 2 Verbs 1 1

Relationship Constraints  One-Many: Entity of first set can connect to just one entity in second set Entity of second set can connect to many in first Use N for arbitrary number greater than 1, or put specific number Entity Set 1Entity Set 2 Verbs N 1

Relationship Constraints  Many-Many: An entity of either set can connect to many entities in the other set Use N and M for arbitrary number greater than 1, or put specific number (or omit) Entity Set 1Entity Set 2 Verbs N M

Relationship Constraints  Numbers on lines indicate maximums  Can also show that every entity must participate Every entity of first set must be related to at least one entity of the second set Entity Set 1Entity Set 2 Verbs M N

Attributes on Relationships  Sometimes attribute is property of relationship instead of either entity Entity Set 1Entity Set 2 Verbs Attribute

Recursive Relationships  When an entity set is related to itself  Label edges with roles  Consider “Cousin Of” Symmetrical No clear role names Person Marries wife husband

Subclasses  Subclass = fewer entities Have more properties  Entity of subclass set is also in superclass set Has all attributes of both sets Superclass Entity Set Subclass Entity Set isa

Keys  Let us tell entities apart  The key for an entity set is a subset of the attributes for that entity set, such that no two entities agree on all the attributes

Showing Keys  Each entity must have a key  Shown by underlining names of key attributes  For subclass hierarchies: Only the root entity set has a key All entities in hierarchy use that key

Weak Entity Sets  When even all the attributes aren’t enough for a key…  Use a many-one relationship to “borrow” an additional attribute for the key

Example Weak Entity Set  Consider football players in a fantasy league Is Name a key? Is Number a key?  Need Number + Team Played On Player Team Plays on name number 1

Practice with E-R Diagrams  In groups of 2–3 work on HW Problem 3.21 On back of handout