2. Supports ecient access to very large amounts. Example: bank and its ATM machines. from the same account via ATM machines



Similar documents
2. Supports eæcient access to very large amounts

2. Supports ecient access to very large amounts. Example: bank and its ATM machines. from the same account via ATM machines

Entity-Relationship Model. Purpose of E/R Model. Entity Sets

CS411 Database Systems

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #5: En-ty/Rela-onal Models- - - Part 1

BİL 354 Veritabanı Sistemleri. Entity-Relationship Model

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. Introduction to Databases. Why databases? Why not use XML?

Database Design and Programming

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3

types, but key declarations and constraints Similar CREATE X commands for other schema ëdrop X name" deletes the created element of beer VARCHARè20è,

Using Rational Rose to Create Object-Oriented Diagrams

The Relational Model. Why Study the Relational Model? Relational Database: Definitions

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1

Database Systems. Lecture 1: Introduction

The Entity-Relationship Model

The Relational Data Model: Structure

Overview of Data Management

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

Module 4 Creation and Management of Databases Using CDS/ISIS

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Chapter 4. Entity: an object that is involved in the enterprise

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. The Relational Model. The relational model

Foundations of Information Management

David M. Kroenke and David J. Auer Database Processing 11 th Edition Fundamentals, Design, and Implementation. Chapter Objectives

Information Management

The Relational Model. Why Study the Relational Model?

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

2. Conceptual Modeling using the Entity-Relationship Model

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded

SEMO Online Helpdesk LCF Submission Process

Modern Databases. Database Systems Lecture 18 Natasha Alechina

Review Entity-Relationship Diagrams and the Relational Model. Data Models. Review. Why Study the Relational Model? Steps in Database Design

Transactions, Views, Indexes. Controlling Concurrent Behavior Virtual and Materialized Views Speeding Accesses to Data

Complex Data and Object-Oriented. Databases

DIA Creating Charts and Diagrams

Data Analysis 1. SET08104 Database Systems. Napier University

Foundations of Information Management

Basic Concepts of Database Systems

David M. Kroenke and David J. Auer Database Processing 12 th Edition

TIM 50 - Business Information Systems

Fundamentals of Database Design

DATABASE REVERSE ENGINEERING

Data Domain Discovery in Test Data Management

On-Line Application Processing. Warehousing Data Cubes Data Mining

SQL Data Definition. Database Systems Lecture 5 Natasha Alechina

Overview of Database Management

Concepts of Database Management Seventh Edition. Chapter 6 Database Design 2: Design Method

Relational Algebra. Basic Operations Algebra of Bags

Database Systems. National Chiao Tung University Chun-Jen Tsai 05/30/2012

Concepts of Database Management Eighth Edition. Chapter 1 Introduction to Database Management

Business Database Systems

Latte Rapid Application Development. William Dunlap Product Manager Borland International

Introduction. Introduction: Database management system. Introduction: DBS concepts & architecture. Introduction: DBS versus File system

Name: Date: Period: PIZZA! PIZZA! Area of Circles and Squares Circumference and Perimeters Volume of Cylinders and Rectangular Prisms Comparing Cost

SQL Simple Queries. Chapter 3.1 V3.0. Napier University Dr Gordon Russell

COURSE NAME: Database Management. TOPIC: Database Design LECTURE 3. The Database System Life Cycle (DBLC) The database life cycle contains six phases;

The Right Database for Your Growing Business Ndo M. Osias

The Microsoft platform for Financial Business Intelligence and informed decision making

Introduction: Database management system

and what does it have to do with accounting software? connecting people and business

æ A collection of interrelated and persistent data èusually referred to as the database èdbèè.

Logistics. Database Management Systems. Chapter 1. Project. Goals for This Course. Any Questions So Far? What This Course Cannot Do.

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

ECS 165A: Introduction to Database Systems

Database Design and Database Programming with SQL - 5 Day In Class Event Day 1 Activity Start Time Length

PIZZA! PIZZA! TEACHER S GUIDE and ANSWER KEY

SQL DDL. DBS Database Systems Designing Relational Databases. Inclusion Constraints. Key Constraints

Connecticut Hazardous Waste Manifests Database

Object Oriented Databases. OOAD Fall 2012 Arjun Gopalakrishna Bhavya Udayashankar

Data Warehouse Center Administration Guide

Database Fundamentals

Database Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design

OBJECTSTUDIO. Database User's Guide P

PeopleTools Tables: The Application Repository in the Database

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

DB2 Application Development and Migration Tools

Θεµελίωση Βάσεων εδοµένων

MobiLink Synchronization with Microsoft SQL Server and Adaptive Server Anywhere in 30 Minutes

How to Copy A SQL Database SQL Server Express (Making a History Company)

CPS122 Lecture: State and Activity Diagrams in UML

In This Lecture. Physical Design. RAID Arrays. RAID Level 0. RAID Level 1. Physical DB Issues, Indexes, Query Optimisation. Physical DB Issues

<Insert Picture Here> Move to Oracle Database with Oracle SQL Developer Migrations

TAMUS Remote Desktop Setup For BPP SQL & Alva

Security Solutions. MyDBA s. Security Solutions. For Databases. October Copyright 2012 MyDBA CC. Version 3

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

Database Design. Goal: specification of database schema Methodology: E-R Model is viewed as a set of

7. Databases and Database Management Systems

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Instructions for applying data validation(s) to data fields in Microsoft Excel

1 File Processing Systems

NoSQL systems: introduction and data models. Riccardo Torlone Università Roma Tre

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives

ICOM 6005 Database Management Systems Design. Dr. Manuel Rodríguez Martínez Electrical and Computer Engineering Department Lecture 2 August 23, 2001

Using Microsoft Word. Working With Objects

Connecting to your Database!... 3

Lecture 8: Synchronous Digital Systems

Transcription:

What is a Database Management System? 1. Manages very large amounts of data. 2. Supports ecient access to very large amounts of data. 3. Supports concurrent access to v.l.a.d. Example: bank and its ATM machines. 4. Supports secure, atomic access to v.l.a.d. Contrast two people editing the same UNIX le last to write \wins" with the problem if two people deduct money from the same account via ATM machines at the same time new balance is wrong whichever writes last. 1

Relational Model Based on tables, as: acct# name balance 12345 Sally 1000.21 34567 Sue 285.48 Today used in most DBMS's. 2

The DBMS Marketplace Relational DBMS companies Oracle, Informix, Sybase are among the largest software companies in the world. IBM oers its relational DB2 system. With IMS, a nonrelational system, IBM is by some accounts the largest DBMS vendor in the world. Microsoft oers SQL-Server, plus Microsoft Access for the cheap DBMS on the desktop, answered by \lite" systems from other competitors. Relational companies also challenged by \object-oriented DB" companies. But countered with \object-relational" systems, which retain the relational core while allowing type extension as in OO systems. 3

Three Aspects to Studying DBMS's 1. Modeling and design of databases. Allows exploration of issues before committing to an implementation. 2. Programming: queries and DB operations like update. SQL = \intergalactic dataspeak." 3. DBMS implementation. CS145 = (1) + (2), while (3) is covered in CS245, CS346, CS347. 4

Entity/Relationship Model Diagrams to represent designs. Entity like object, = \thing." Entity set like class = set of \similar" entities/objects. Attribute = property of entities in an entity set, similar to elds of a struct. In diagrams, entity set! rectangle; attribute! oval. ID name phone Students height 5

Relationships Connect two or more entity sets. Represented by diamonds. Students Taking Courses Relationship Set Think of the \value" of a relationship set as a table. One column for each of the connected entity sets. One row for each list of entities, one from each set, that are connected by the relationship. Students Sally Sally Joe Courses CS145 CS244 CS145 6

Multiway Relationships Usually binary relationships (connecting two E.S.) suce. However, there are some cases where three or more E.S. must be connected by one relationship. Example: relationship among students, courses, TA's. Possibly, this E/R diagram is OK: Students Taking Courses Assisting TAs 7

Works in CS145, because each TA is a TA of all students. Connection student-ta is only via the course. But what if students were divided into sections, each headed by a TA? Then, a student in CS145 would be related to only one of the TA's for CS145. Which one? Need a 3-way relationship to tell. 8

Students Courses Enrolls TAs Students Courses TAs Ann CS145 Jim Sue CS145 Roy Bob CS145 Jim 9

Beers-Bars-Drinkers Example Our running example for the course. name addr license Bars Serves Frequents Beers Likes Drinkers name manf name addr 10

Multiplicity of Relationships Many-many Many-one One-one Representation of Many-One E/R: arrow pointing to \one." Rounded arrow = \exactly one." 11

Example: Drinkers Have Favorite Beers name addr license Bars Serves Frequents Beers Likes Drinkers name manf name addr Favorite 12

One-One Relationships Put arrows in both directions. Manfs Bestseller Beers Design Issue: Is the rounded arrow justied? Design Issue: Here, manufacturer is an E.S.; in earlier diagrams it is an attribute. Which is right? 13

Attributes on Relationships price Bars Sells Beers Shorthand for 3-way relationship: price Prices Bars Sells Beers 14

A true 3-way relationship. Price depends jointly on beer and bar. Notice arrow convention for multiway relationships: \all other E.S. determine one of these." Not suciently general to express any possibility. However, if price, say, depended only on the beer, then we could use two 2-way relationships: price-beer and beer-bar. Or better: just make price an attribute of beer. 15

Converting Multiway to 2-Way Baroque in E/R, but necessary in certain \object-oriented" models. Create a new connecting E.S. to represent rows of a relationship set. E.g., (Joe's Bar, Bud, $2.50) for the Sells relationship. Many-one relationships from the connecting E.S. to the others. BBP The- Beer The- Bar The- Price Bars Beers Prices 16

Roles Sometimes an E.S. participates more than once in a relationship. Label edges with roles to distinguish. Married husband wife Drinkers Husband Wife d 1 d 2 d 3 d 4 17

Buddies 1 2 Drinkers Buddy1 Buddy2 d 1 d 2 d 1 d 3 d 2 d 1 d 2 d 4 Notice Buddies is symmetric, Married not. No way to say \symmetric" in E/R. Design Question Should we replace husband and wife by one relationship spouse? 18