Component 4: Introduction to Information and Computer Science



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

Lecture 12: Entity Relationship Modelling

DATABASE MANAGEMENT SYSTEMS. Question Bank:

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

A brief overview of developing a conceptual data model as the first step in creating a relational database.

The Entity-Relationship Model

TIM 50 - Business Information Systems

Using Entity-Relationship Diagrams To Count Data Functions Ian Brown, CFPS Booz Allen Hamilton 8283 Greensboro Dr. McLean, VA USA

Data Modeling Basics

Database Management Systems

1 Class Diagrams and Entity Relationship Diagrams (ERD)

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

Lecture Notes INFORMATION RESOURCES

Database Design Process

Database Design Process

Foundations of Information Management

Designing a Database Schema

Modern Systems Analysis and Design

Chapter 2: Entity-Relationship Model. E-R R Diagrams

Lesson 8: Introduction to Databases E-R Data Modeling

Database Design Methodology

How To Write A Diagram

Introduction to Computing. Lectured by: Dr. Pham Tran Vu

Toad Data Modeler - Features Matrix

Relational Database Concepts

Databases What the Specification Says

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

Chapter 2: Entity-Relationship Model

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Database IST400/600. Jian Qin. A collection of data? A computer system? Everything you collected for your group project?

Animated Courseware Support for Teaching Database Design

2. Conceptual Modeling using the Entity-Relationship Model

Databases and BigData

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

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

IV. The (Extended) Entity-Relationship Model

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

Fundamentals of Database Design

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

Physical Database Design Process. Physical Database Design Process. Major Inputs to Physical Database. Components of Physical Database Design

DATABASE INTRODUCTION

2.0 Welcome Introduction What is the Scope? What are the Things of Interest? Creating Entities...

7.1 The Information system

Preview DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL

A candidate following a programme of learning leading to this unit will be able to:

Foundations of Information Management

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

LiTH, Tekniska högskolan vid Linköpings universitet 1(7) IDA, Institutionen för datavetenskap Juha Takkinen

ER modelling, Weak Entities, Class Hierarchies, Aggregation

IT2305 Database Systems I (Compulsory)

An Example: Video Rental System

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.

Relational Database Basics Review

5.5 Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall. Figure 5-2

Database Management. Technology Briefing. Modern organizations are said to be drowning in data but starving for information p.

Designing Databases. Introduction

Foundations of Business Intelligence: Databases and Information Management

Conceptual Design Using the Entity-Relationship (ER) Model

XV. The Entity-Relationship Model

Welcome to the Data Analytics Toolkit PowerPoint presentation on EHR architecture and meaningful use.

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst

Data Modelling and E-R Diagrams

A Short Tutorial on Using Visio 2010 for Entity-Relationship Diagrams

ComponentNo. C_Description UnitOfMeasure. C_Quantity

The Entity-Relationship Model

IT2304: Database Systems 1 (DBS 1)

AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

Nearly every book, article, or presentation about FRBR has an explication THE ENTITY- RELATION MODEL SIX

A Tutorial on Quality Assurance of Data Models 1. QA of Data Models. Barry Williams. tutorial_qa_of_models.doc Page 1 of 17 31/12/ :18:36

Hands-on training in relational database concepts

Data Analysis 1. SET08104 Database Systems. Napier University

SCHEMAS AND STATE OF THE DATABASE

Why & How: Business Data Modelling. It should be a requirement of the job that business analysts document process AND data requirements

CPS352 Database Systems: Design Project

A Rational Software Whitepaper

Entity-Relationship Model

Converting E-R Diagrams to Relational Model. Winter Lecture 17

NATIONAL OPEN UNIVERSITY OF NIGERIA

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

Introduction to normalization. Introduction to normalization

Data Modeling. Database Systems: The Complete Book Ch ,

Entity - Relationship Modelling

Practical Database Design

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives


Design and Implementation

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

Select the Crow s Foot entity relationship diagram (ERD) option. Create the entities and define their components.

Study Notes for DB Design and Management Exam 1 (Chapters 1-2-3) record A collection of related (logically connected) fields.

The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and

Contents RELATIONAL DATABASES

DATABASE REVERSE ENGINEERING

Databases and Information Management

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS

OVERVIEW 1.1 DATABASE MANAGEMENT SYSTEM (DBMS) DEFINITION:-

CS 487. Week 8. Reference: 1. Software engineering, roger s. pressman. Reading: 1. Ian Sommerville, Chapter 3. Objective:

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model

Transcription:

Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science University, funded by the Department of Health and Human Services, Office of the National Coordinator for Health Information Technology under Award Number IU24OC000015. Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database development 2 Connecting Data Relationships Candidate keys Primary keys Natural keys Surrogate keys Foreign keys 3 1

Data Modeling: Database Design Entities Entity-Relation Diagram (ERD) Maximum cardinality of the relationship Attributes Crow s foot diagrams 4 Database Acquisition Data is stored in and retrieved from a database by using Structured Query Language (SQL) 5 The Database Management System (DBMS) Metadata Administration of the database Carries out SQL statements and procedures Stored procedures Triggers Security (permissions) Handles processing problems Carries out backup & restore/recovery 6 2

Database Development From scratch Existing data Data model eventually becomes DB design Merge existing databases Modification of existing database Most databases have already been developed 7 Phases of Database Development 1. Gathering specifications 2. Design Data modeling to database design 3. Testing 4. Implementation 5. Maintenance 6. Modification (starts process all over again) 8 Gathering Specifications Attribute domains Data type, length, legitimate values Business rules Input from users Forms and reports Existing files Outcome of this phase is a beginning data model 9 3

Design More definitive specifications are gathered The data model is perfected toward the database design Entities become tables Attributes are added subtracted as needed Candidate keys are identified and finally primary keys are chosen Relationships are indicated with the addition of foreign keys 10 Multiple Views of the Database Each user will have a different need/view of the database Forms, files and reports will all be of different views of the database All views of the database need to be resolved into the data model. The data model will not look like any one of the views. 11 Testing First evaluate design Confirm that data model contains all the information that users will need Converse with users Show them data model Express known facts to users Users can make objections 12 4

Implementation Database is created Tables are created with attributes, primary and foreign keys Business rules are carried out Stored procedures Triggers Built-in DBMS features 13 DBMS Restrictions The database design may have to be adjusted to meet with any DBMS or computer system restrictions. 14 Testing Again The database is populated with real and/or test data SQL is written that accommodates what the users have requested and the SQL is run against the database Bad results means that the database must be changed. This can mean going all the way back to the design phase or it could be something more elementary. 15 5

Entity-Relationship Model ER model (Peter Chen, 1976) Extended ER model Information Engineering (IE)(James Martin, 1990) or Crow s foot version of ER Model Integrated Definition 1, Extended Version (IDEF1X) government standard National Institute of STDs and Technology (NIST) 1993 Unified Modeling Language (UML) 16 Entities Potential table Things that the user needs to keep track of People, places, things, activities, documents Object Classes (idea) An occurrence or individual is an instance of an entity class 17 Attributes Descriptors of entities Have to have a direct relationship with the entity. Customer entity might have customer name as an attribute Can be shown in entity relationship model as balloons or be listed under the entity name. 18 6

Attributes Continued Composite attributes Multi-value attributes Attribute domains 19 Identifiers Attributes Continued 20 Primary Keys Primary key uniquely defines a record: It must be unique within the table column Composite keys consist of two or more columns It s more efficient if it s short and numeric Value should never change Natural vs. surrogate primary keys A natural primary key is something that the user is familiar with and/or is readily available. 21 7

One-to-one Relationship Classes One-to-many Many-to-many 22 Relationships Maximum cardinality Parent-Child Minimum cardinality Recursive relationship Weak and strong entities ID shared relationship 23 Relationships Continued Subtype and super type entities Inheritance Discriminator Exclusive Vs Inclusive (Crow s Foot) Complete Vs Incomplete (IDEF1X) 24 8

Relationships Continued Naming a relationship Used to distinguish two relationships between the same two entities Used to help clarify the relationship Can be made up of a short phrase that describes the parent to child relationship followed by a short phrase that describes the child to parent relationship. 25 9