Databases and BigData

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "Databases and BigData"

Transcription

1 Eduardo Cunha de Almeida

2 Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagnes) NewSQL (D. Kim and J. Meira) NoSQL (D. Kim) MapReduce (E. Almeida and E. Lucas) Data Streaming (C. Cassagne) Machine Learning (C. Henard) Assignment (E. Almeida, J. Meira and E. Lucas) 2

3 Database Systems 3

4 Databases go BigData 4

5 Some numbers from 2012 and earlier 5

6 Buzzwords 6

7 7

8 Data Processing Solutions for BigData System-R ( The traditional data processing ) The 70's design: relations and strong data consistency NewSQL Boosting System-R to handle the transactions onslaught NoSQL Eventual data consistency MapReduce Divide and conquer data processing for data analytics 8

9 Data Processing Solutions for BigData System-R ( The traditional data processing ) The 70's design: relations and strong data consistency NewSQL Boosting System-R To understand to what handle is going the on, transactions onslaughtlet's get back to this over the next NoSQL couple of lectures!!! Eventual data consistency MapReduce Divide and conquer data processing for data analytics 9

10 Definitions 10

11 What is a database? A database is an organized collection of data [Navathe and Elmasri, 94] - represents aspects of reality - has coherence (no random sets) - is Built for specific projects 11

12 Database vs. File system Self-descriptive nature: DB defines its data structures and constraints Data abstraction: FS requires programs to describe data Multiple view: Users may visualize data from different perspectives Sharing: DB allows concurrent access 12

13 Database Actors Users: Works on top of databases Analyst: Determines the users' requisites Designer: Designs the DB for specific projects DBA: Manages the Database structures and resource consumption 13

14 Three Layer Client/Server [Valduriez, 92] 14

15 Database Abstraction External Schema External Schema External Schema Logical Schema Physical Schema DISK 15

16 Today's lecture External Schema External Schema External Schema { - Conceptual Design - Relational Model - E-R Mapping Logical Schema Physical Schema DISK 16

17 Conceptual Design 17

18 Why do we need database design? Agree on structure the database before going to implementation. Entities Relationships between entities Constraints of the domain 18

19 Conceptual Design Entity/Relationship Model (E/R) - Requirements - Design - Implementation Different from UML conceived to support OO design!!! 19

20 E/R Diagrams Entities Attributes project Name Something from the real word with independent existence Properties of an entity Relationship manage Association between entities 20

21 Entities, attributes and keys Every entity has a minimal set of uniquely identifying attributes (i.e., key) employee SSN name DateOfBirth 21

22 Types of attributes Simple or Composite SSN Address Street Number City Multivalued Degree e.g., Ph.D., M.S., B.S. 22

23 Types of attributes Derived Age Requires some computation Key SSN Identify uniquely an entity 23

24 Relationships Connect entities together (in general identified by a verb) 1:N relationship (the norm in the design) employee 1 manage N project 24

25 Relationship cardinality 1:1 relationship (rare, because they may belong to the same table) employee 1 chair 1 department N:M relationship (not so rare, but try to avoid) supplier N supply M project 25

26 Relationship's Attributes An attribute of a relationship only exists due to such association employee 1 chair 1 department term 26

27 Example nameofproj nameofemp SSN employee 1 1 manage N PID project N local chair supply term 1 M nameofdep DID department nameofsup SID supplier 27

28 Multi-way Relationships Ternary relationship supplier N supply M project quantity date M part 28

29 Multi-way Relationships Ternary to binary relationship supplier 1 quantity N SP M M date 1 project 1 part Attention, since information may be lost 29

30 Weak Entities nameofemp employee 1 N has dependents SSN SSND nameofdpt Cannot be identified by its attributes alone Requires a foreign key in conjunction with its attributes 30

31 Modeling Hierarchy Data is naturally hierarchical (such as the world) employee technical admin Obs. Not all database systems implement inheritance 31

32 Hands-on 1.Entities: Professor, Student, Course 2.Relationships: teach, register 3.Attributes:??? 32

33 Relational model 33

34 Relational Model Created by Edgar Codd in 1969 Based on mathematical relations Set of tuples grouped into relations Database Attribute (column) SSN Name Age Dept 123 John Mary Peter 40 3 Tuple (row) 34

35 Attributes (Columns) Data type: integer, float, string, date/time, binary Domain: set of atomic values (e.g., SSN is a set of 9 digits) mono-valued SSN Name Age Dept 123 John Mary Peter 40 3 Domain 35

36 Constraints Domain: every element respects the type of its attribute E.g., Dom(dept) = {1, 2, 3, 4, 5} SSN Name Age Dept 123 John Mary Peter 40 3 Domain 36

37 Constraints Entity integrity: No primary keys can be null Primary Key SSN Name Age Dept 123 John 30 2 NULL Mary 34 3 NULL Peter 40 3 Tuples cannot be identified 37

38 Constraints Referential Integrity: enforces consistency between two relations Table: Employee SSN ename 123 John 321 Mary 333 Peter Table: Dependent SSN ID dname James Diana Robert Broken link 38

39 Examples of constraint violation Table: Employee SSN Name Age Dept 123 John Mary Peter 40 3 Insert(null, 'Gail', 32, 3) into employee Insert(123, 'Gail', 32, 3) into employee Insert(125, 'Gail', 32, 'A') into employee Insert(125, 'Gail', 32, 3) into employee 39

40 Structured Query Language (SQL) 40

41 SQL in a nutshell Programming language to manipulate data Declarative nature (What to do instead of how) Different versions: 86, 89, 92, 99, 03, Different aspects: Select, DDL, DCL, DML, triggers and constraints 41

42 SELECT Select [attributes] From [relation] Where [condition] For instance: Select SSN, name From Employee Where age<40; Select SSN, name From Employee Where age<40 and depto=2; 42

43 Select SSN, name From Employee Where age = 40 and age = 50; Select SSN, name From Employee Where age = 40 or age = 50; Select SSN, name From Employee Where age between 40 and 50; Consider the operators >, <, >=, <= 43

44 Joining Relations (Join operator) [SQL92] Select p.nameofproj, s.quantity From Project p, Supply s Where p.pid=s.pid; Select p.nameofproj, s.quantity, r.nameofsup From Project p, Supply s, Supplier, r Where p.pid=s.pid And s.sid=r.sid; 44

45 INSERT Insert Into [relation] Values (...) Where [condition] For instance: Insert into employee Values (111, 'Jane', 45); Insert into employee(ssn, name, age) Values (111, 'Jane', 45); 45

46 DELETE Delete From [relation] Where [condition] For instance: Delete from employee Where name= 'Jane'; Delete from employee Where age between 0 and 18; 46

47 sailors(sid, sname, age) boats(bid, bname, color) bookings(sid, bid, day) Hands-on Please find through SQL: 1.The name and age of the sailors 2.The name of the sailor who booked boat The name of the sailor who booked the green boat 4.The colors of the boats booked by sailor 'John' 5.The name of the boats booked between '01/01/13' and '31/01/13' 6.The name of the sailors with age between 30 and 40 47

48 Mapping E/R to Relational 48

49 General Algorithm 1.Every entity becomes a relation with a key 2.Relationship 1:N sets a key to the N side 3.Relationship N:M creates a new relation with the keys from both sides 49

50 Example nameofproj nameofemp SSN employee 1 1 manage N PID project N local chair supply term 1 M nameofdep DID department nameofsup SID supplier 50

51 Example Table: project Attr. PID nameofproject local 1 Type integer string string Table: supplier Attr. SID nameofsup Type integer string 1 Table: supply N Attr. quantity product Type integer string M PID integer SID integer 51

52 Hands-on Finish mapping the E/R from the above example to the relational model... 52

Inf202 Introduction to Data and Databases (Spring 2011)

Inf202 Introduction to Data and Databases (Spring 2011) Inf202 Introduction to Data and Databases (Spring 2011) Jagdish S. Gangolly Informatics CCI SUNY Albany March 1, 2011 Database Design The relational Data Model Relational Data structure (Table) Relational

More information

Relational Database Systems Part 01. Karine Reis Ferreira

Relational Database Systems Part 01. Karine Reis Ferreira Relational Database Systems Part 01 Karine Reis Ferreira karine@dpi.inpe.br Database System Database: is a collection of related data. represents some aspect of the real world is a logically coherent collection

More information

Q4. What are data model? Explain the different data model with examples. Q8. Differentiate physical and logical data independence data models.

Q4. What are data model? Explain the different data model with examples. Q8. Differentiate physical and logical data independence data models. FAQs Introduction to Database Systems and Design Module 1: Introduction Data, Database, DBMS, DBA Q2. What is a catalogue? Explain the use of it in DBMS. Q3. Differentiate File System approach and Database

More information

Lecture 6. SQL, Logical DB Design

Lecture 6. SQL, Logical DB Design Lecture 6 SQL, Logical DB Design Relational Query Languages A major strength of the relational model: supports simple, powerful querying of data. Queries can be written intuitively, and the DBMS is responsible

More information

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

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic

More information

Ques 1. Define dbms and file management system? Ans- Database management system (DBMS) A file management system

Ques 1. Define dbms and file management system? Ans- Database management system (DBMS) A file management system UNIT-1 Ques 1. Define dbms and file management system? Ans- Database management system (DBMS) is a collection of interrelated data and a set of programs to access those data. Some of the very well known

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms Relation Primary key Foreign key Referential integrity Field

More information

DATABASE MANAGEMENT SYSTEMS. Question Bank:

DATABASE MANAGEMENT SYSTEMS. Question Bank: DATABASE MANAGEMENT SYSTEMS Question Bank: UNIT 1 1. Define Database? 2. What is a DBMS? 3. What is the need for database systems? 4. Define tupule? 5. What are the responsibilities of DBA? 6. Define schema?

More information

There are five fields or columns, with names and types as shown above.

There are five fields or columns, with names and types as shown above. 3 THE RELATIONAL MODEL Exercise 3.1 Define the following terms: relation schema, relational database schema, domain, attribute, attribute domain, relation instance, relation cardinality, andrelation degree.

More information

Database Internals (Overview)

Database Internals (Overview) Database Internals (Overview) Eduardo Cunha de Almeida eduardo@inf.ufpr.br Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagne) NewSQL (D. Kim

More information

Introduction to Databases

Introduction to Databases Page 1 of 5 Introduction to Databases An introductory example What is a database? Why do we need Database Management Systems? The three levels of data abstraction What is a Database Management System?

More information

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

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1 The Relational Model Ramakrishnan&Gehrke, Chapter 3 CS4320 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models

More information

IT2304: Database Systems 1 (DBS 1)

IT2304: Database Systems 1 (DBS 1) : Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation

More information

Course 2. The Relational Model

Course 2. The Relational Model Course 2. The Relational Model Layered Approach to Database Implementation Figure 2.1. Levels of Abstraction: - Views describe how users see the data - Conceptual schema defines logical structure - Physical

More information

Reducing ER Schema to Relational Schema

Reducing ER Schema to Relational Schema Reducing ER Schema to Relational Schema Excerpt from Chapter 3, Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Logical DB Design: ER to Relational Entity sets to tables: ssn name Employees

More information

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

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3 The Relational Model Chapter 3 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase,

More information

IT2305 Database Systems I (Compulsory)

IT2305 Database Systems I (Compulsory) Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this

More information

Relational Model. CS 377: Database Systems

Relational Model. CS 377: Database Systems Relational Model CS 377: Database Systems Relational Model First formal database model Introduced by Ted Codd in 1970 Conceptual basis of relational databases Simple and based on the mathematical relations

More information

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & commerce, Aurangabad. Department of Computer Science. Academic Year

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & commerce, Aurangabad. Department of Computer Science. Academic Year Dr. Rafiq Zakaria Campus Maulana Azad College of Arts, Science & commerce, Aurangabad Department of Computer Science Academic Year 2015-16 MCQs on Database Management System Using SQL Sem. :- IV Q.1 DBMS

More information

MAPPING RELATIONAL MODEL ER LECTURE 5 DATABASE TECHNOLOGY TDDB48. TDDB48 Lecture 5:R oss Lee Graham Slide 1

MAPPING RELATIONAL MODEL ER LECTURE 5 DATABASE TECHNOLOGY TDDB48. TDDB48 Lecture 5:R oss Lee Graham Slide 1 MAPPING RELATIONAL MODEL ER LECTURE 5 DATABASE TECHNOLOGY TDDB48 Slide 1 DESIGNING A RELATIONAL DATABASE SCHEMA This is the logical database design step. Many tools (CASE, etc) use ER diagrams or variations

More information

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

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an

More information

Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4

Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Schema: The structure of the data Structured Data: Relational, XML-DTD, etc Unstructured Data: CSV, JSON But where does

More information

www.gr8ambitionz.com

www.gr8ambitionz.com Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1

More information

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

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst Outline Data Modeling Yanlei Diao UMass Amherst v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 2 Conceptual

More information

Chapter 5. SQL: Queries, Constraints, Triggers

Chapter 5. SQL: Queries, Constraints, Triggers Chapter 5 SQL: Queries, Constraints, Triggers 1 Overview: aspects of SQL DML: Data Management Language. Pose queries (Ch. 5) and insert, delete, modify rows (Ch. 3) DDL: Data Definition Language. Creation,

More information

Review: Participation Constraints

Review: Participation Constraints Review: Participation Constraints Does every department have a manager? If so, this is a participation constraint: the participation of Departments in Manages is said to be total (vs. partial). Every did

More information

Chapter (7) ER-to-Relational Mapping, and other Relational Languages

Chapter (7) ER-to-Relational Mapping, and other Relational Languages Chapter (7) ER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual schema developed using the ER models. We will look at the

More information

Fundamentals of Database Design

Fundamentals of Database Design Fundamentals of Database Design Zornitsa Zaharieva CERN Data Management Section - Controls Group Accelerators and Beams Department /AB-CO-DM/ 23-FEB-2005 Contents : Introduction to Databases : Main Database

More information

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

The Relational Model. Why Study the Relational Model? Relational Database: Definitions The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in

More information

ER Cardinality Examples

ER Cardinality Examples The Entity-Relationship Model Part II The Entity-Relationship Model -- 1 ER Cardinality Examples The Entity-Relationship Model -- 2 1 Textbook Notation for (1,1) cardinalities (key constraints) Person

More information

Conceptual Database Design Using the Entity-Relationship (ER) Model. Overview of Database Design

Conceptual Database Design Using the Entity-Relationship (ER) Model. Overview of Database Design Conceptual Database Design Using the Entity-Relationship (ER) Model CS386/586 Introduction to Database Systems, Lois Delcambre 1999-2005 Slide 1 Overview of Database Design Conceptual design: (ER Model

More information

EECS 647: Introduction to Database Systems

EECS 647: Introduction to Database Systems EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2013 Administrative Take home background survey is due this coming Friday The grader of this course is Ms. Xiaoli Li and her email

More information

Relational Model CENG 351 1

Relational Model CENG 351 1 Relational Model CENG 351 1 Relational Database: Definitions Relational database: a set of relations Relation: made up of 2 parts: Instance : a table, with rows and columns. #Rows = cardinality, #fields

More information

ERM to Relational Model. Kathleen Durant CS 3200 Lesson 3

ERM to Relational Model. Kathleen Durant CS 3200 Lesson 3 ERM to Relational Model Kathleen Durant CS 3200 Lesson 3 Outline for today Review of fundamental ERM concepts Walk through the process of identifying the components of a entity relational model (ER) Introduce

More information

BCA. Database Management System

BCA. Database Management System BCA IV Sem Database Management System Multiple choice questions 1. A Database Management System (DBMS) is A. Collection of interrelated data B. Collection of programs to access data C. Collection of data

More information

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

Review Entity-Relationship Diagrams and the Relational Model. Data Models. Review. Why Study the Relational Model? Steps in Database Design Review Entity-Relationship Diagrams and the Relational Model CS 186, Fall 2007, Lecture 2 R & G, Chaps. 2&3 Why use a DBMS? OS provides RAM and disk A relationship, I think, is like a shark, you know?

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model 221 After completing this chapter, you should be able to explain the three phases of database design, Why are multiple phases useful? evaluate the significance of the Entity-Relationship

More information

Lesson 8: Introduction to Databases E-R Data Modeling

Lesson 8: Introduction to Databases E-R Data Modeling Lesson 8: Introduction to Databases E-R Data Modeling Contents Introduction to Databases Abstraction, Schemas, and Views Data Models Database Management System (DBMS) Components Entity Relationship Data

More information

Fundamentals of Database Systems, 4 th Edition By Ramez Elmasri and Shamkant Navathe. Table of Contents. A. Short Table of Contents

Fundamentals of Database Systems, 4 th Edition By Ramez Elmasri and Shamkant Navathe. Table of Contents. A. Short Table of Contents Fundamentals of Database Systems, 4 th Edition By Ramez Elmasri and Shamkant Navathe Table of Contents A. Short Table of Contents (This Includes part and chapter titles only) PART 1: INTRODUCTION AND CONCEPTUAL

More information

The Relational Model

The Relational Model 1 The Relational Model Why Relational Model? Currently the most widely used Vendors: Oracle, Microsoft, IBM Older models still used IBM s IMS (hierarchical model) Recent competitions Object Oriented Model:

More information

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

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps. DATABASE DESIGN - The ability to design databases and associated applications is critical to the success of the modern enterprise. - Database design requires understanding both the operational and business

More information

Foundations of Information Management

Foundations of Information Management Foundations of Information Management - WS 2012/13 - Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Data & Databases Data: Simple information Database:

More information

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

AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL Ben B. Kim, Seattle University, bkim@seattleu.edu ABSTRACT The entity-relationship (ER model is clearly

More information

Conceptual Design Using the Entity-Relationship (ER) Model

Conceptual Design Using the Entity-Relationship (ER) Model Conceptual Design Using the Entity-Relationship (ER) Model Module 5, Lectures 1 and 2 Database Management Systems, R. Ramakrishnan 1 Overview of Database Design Conceptual design: (ER Model is used at

More information

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

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model The entity-relationship (E-R) model is a a data model in which information stored

More information

Relational Database Basics Review

Relational Database Basics Review Relational Database Basics Review IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview Database approach Database system Relational model Database development 2 File Processing Approaches Based on

More information

Some issues on Conceptual Modeling and NoSQL/Big Data

Some issues on Conceptual Modeling and NoSQL/Big Data Some issues on Conceptual Modeling and NoSQL/Big Data Tok Wang Ling National University of Singapore 1 Database Models File system - field, record, fixed length record Hierarchical Model (IMS) - fixed

More information

Data and Its Structure. The Relational Data Model. Physical Data Level. Conceptual Data Level. Conceptual Data Level (con t)

Data and Its Structure. The Relational Data Model. Physical Data Level. Conceptual Data Level. Conceptual Data Level (con t) Data and Its Structure The Relational Data Model Chapter 4 Data is actually stored as bits, but it is difficult to work with data at this level. It is convenient to view data at different levels of abstraction.

More information

CS275 Intro to Databases

CS275 Intro to Databases CS275 Intro to Databases ER Diagrams Chap. 7 Using High Level Conceptual Data Models for Database Design Requirements collection and analysis Database designers interview prospective database users to

More information

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals 1 Properties of a Database 1 The Database Management System (DBMS) 2 Layers of Data Abstraction 3 Physical Data Independence 5 Logical

More information

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

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations 1 Topics for this week: 1. Good Design 2. Functional Dependencies 3. Normalization Readings for this week: 1. E&N, Ch. 10.1-10.6; 12.2 2. Quickstart, Ch. 3 3. Complete the tutorial at http://sqlcourse2.com/

More information

Aveek Gupta, CISA. IPCC Paper 7A: Information Technology Chapter 2

Aveek Gupta, CISA. IPCC Paper 7A: Information Technology Chapter 2 Aveek Gupta, CISA IPCC Paper 7A: Information Technology Chapter 2 * DBMS/RDBMS 1 Administration 2 3 4 5 6 6 7 Models DML and DDL Data Dictionaries Distributed DataBases Object Oriented DataBases Client

More information

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

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Outline Using High-Level Conceptual Data Models for

More information

CSC 742 Database Management Systems

CSC 742 Database Management Systems CSC 742 Database Management Systems Topic #4: Data Modeling Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Phases of Database Design Requirement Collection/Analysis Functional Requirements Functional Analysis

More information

Hierarchical Data Model. Database Modeling (Part 2) IMS Physical Databases. IMS Physical Databases

Hierarchical Data Model. Database Modeling (Part 2) IMS Physical Databases. IMS Physical Databases Hierarchical Data Model Database Modeling (Part 2) The first important logical database model. Primarily implemented on mainframe today. Records are arranged in a top-down structure that resembles an upside-down

More information

Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn

Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Introduction to Computing Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Databases The Hierarchy of Data Keys and Attributes The Traditional Approach To Data Management Database A collection of

More information

Information Systems 2. 1. Modelling Information Systems I: Databases

Information Systems 2. 1. Modelling Information Systems I: Databases Information Systems 2 Information Systems 2 1. Modelling Information Systems I: Databases Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute for Business Economics and Information

More information

Basic Concepts of Database Systems

Basic Concepts of Database Systems CS2501 Topic 1: Basic Concepts 1.1 Basic Concepts of Database Systems Example Uses of Database Systems - account maintenance & access in banking - lending library systems - airline reservation systems

More information

Course Notes on The Bases of the Relational Model

Course Notes on The Bases of the Relational Model Course Notes on The Bases of the Relational Model Intuitive View of Relations Popular view of the relational model = information is structured as 2-dimensional tables of simple values (with lines, or rows,

More information

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

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd. The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody

More information

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

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. Introduction to Databases. Why databases? Why not use XML? CS2Bh: Current Technologies Introduction to XML and Relational Databases Spring 2005 Introduction to Databases CS2 Spring 2005 (LN5) 1 Why databases? Why not use XML? What is missing from XML: Consistency

More information

Database Systems - Introduction to Databases and Data Warehouses. Copyright (c) 2014 Pearson Education, Inc.

Database Systems - Introduction to Databases and Data Warehouses. Copyright (c) 2014 Pearson Education, Inc. Database Systems - Introduction to Databases and Data Warehouses Copyright (c) 2014 Pearson Education, Inc. INTRODUCTION Relational database model - logical database model that represents a database as

More information

RELATIONAL DATABASE DESIGN VIA ER MODELLING CHAPTER 9 (6/E) CHAPTER 7 (5/E)

RELATIONAL DATABASE DESIGN VIA ER MODELLING CHAPTER 9 (6/E) CHAPTER 7 (5/E) RELATIONAL DATABASE DESIGN VIA ER MODELLING CHAPTER 9 (6/E) CHAPTER 7 (5/E) 2 LECTURE OUTLINE Relational Database Design Using ER-to-Relational Mapping Algorithm to convert the basic ER model constructs

More information

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 7 ER Model to Relational Mapping Hello and welcome to the next

More information

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2016 1 Why Study the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, etc. It is simple,

More information

From ER (or EER ) to Relational Schema. Inputs :ER Outputs: Data Model

From ER (or EER ) to Relational Schema. Inputs :ER Outputs: Data Model Mapping Rules From ER (or EER ) to Relational Schema Inputs :ER Outputs: Data Model Prentice Hall, 2002 1 Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes:

More information

Chapter 7. ER and EER-to-Relational Mapping

Chapter 7. ER and EER-to-Relational Mapping Chapter 7 ER and EER-to-Relational apping Relational Data odel From a completed E-R diagram, you can translate that schema into a formal data model required by the DBS. Data odel a formal way of describing

More information

10CS54: DATABASE MANAGEMENT SYSTEM

10CS54: DATABASE MANAGEMENT SYSTEM CS54: DATABASE MANAGEMENT SYSTEM QUESTION BANK Chapter 1: Introduction to Database Systems Objective: Databases and data base system have become an essential component of everyday life in modern society.

More information

CSEN 501 CSEN501 - Databases I

CSEN 501 CSEN501 - Databases I CSEN501 - Databases I Lecture 3: The Relational Model Prof. Dr. Slim slim.abdennadher@guc.edu.eg German University Cairo, Faculty of Media Engineering and Technology Design Steps Ideas E/R Design Relational

More information

Database Systems. Session 2 Main Theme. Relational Data. & Relational Database Constraints Dr. Jean-Claude Franchitti

Database Systems. Session 2 Main Theme. Relational Data. & Relational Database Constraints Dr. Jean-Claude Franchitti Database Systems Session 2 Main Theme Relational Data Model & Relational Database Constraints Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical

More information

2. Conceptual Modeling using the Entity-Relationship Model

2. Conceptual Modeling using the Entity-Relationship Model ECS-165A WQ 11 15 Contents 2. Conceptual Modeling using the Entity-Relationship Model Basic concepts: entities and entity types, attributes and keys, relationships and relationship types Entity-Relationship

More information

Introduction to Database Systems CS4320/CS5320. CS4320/4321: Introduction to Database Systems. CS4320/4321: Introduction to Database Systems

Introduction to Database Systems CS4320/CS5320. CS4320/4321: Introduction to Database Systems. CS4320/4321: Introduction to Database Systems Introduction to Database Systems CS4320/CS5320 Instructor: Johannes Gehrke http://www.cs.cornell.edu/johannes johannes@cs.cornell.edu CS4320/CS5320, Fall 2012 1 CS4320/4321: Introduction to Database Systems

More information

Chapter 1: Introduction. Database Management System (DBMS) University Database Example

Chapter 1: Introduction. Database Management System (DBMS) University Database Example This image cannot currently be displayed. Chapter 1: Introduction Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Database Management System (DBMS) DBMS contains information

More information

Constraints in ER Models. Types of Constraints. Keys. CS 317, Fall 2007

Constraints in ER Models. Types of Constraints. Keys. CS 317, Fall 2007 Constraints in ER Models CS 317, Fall 2007 Types of Constraints Keys are attributes or sets of attributes that uniquely identify an entity within its entity set. Single-value constraints require that a

More information

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

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. The Relational Model. The relational model CS2Bh: Current Technologies Introduction to XML and Relational Databases Spring 2005 The Relational Model CS2 Spring 2005 (LN6) 1 The relational model Proposed by Codd in 1970. It is the dominant data

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model Chapter 2 Slides modified by Rasmus Pagh for Database Systems, Fall 2006 IT University of Copenhagen Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Today

More information

CPSC 3375 Database Concepts I

CPSC 3375 Database Concepts I CPSC 3375 Database Concepts I Spring 2014 Department of Computer Science University of Arkansas at Little Rock 2801 South University Avenue Little Rock, Arkansas 72204-1099 Class Hours: Tuesday and Thursday,

More information

Overview of Data Management

Overview of Data Management Overview of Data Management Grant Weddell Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2015 CS 348 (Intro to DB Mgmt) Overview of Data Management

More information

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

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 LECTURE OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual

More information

Systems Analysis and Design

Systems Analysis and Design Systems Analysis and Design Slides adapted from Jeffrey A. Hoffer, University of Dayton Joey F. George, Florida State University Joseph S. Valacich, Washington State University Modern Systems Analysis

More information

THE RELATIONAL MODEL

THE RELATIONAL MODEL P a g e 1 THE RELATIONAL MODEL 3.1 Introduction to the Relational Model 3.1.1 Creating and Modifying Relations Using SQL 3.2 Integrity Constraints over Relations 3.2.1 Key Constraints 3.2.2 Foreign Key

More information

1. INTRODUCTION TO RDBMS

1. INTRODUCTION TO RDBMS Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one

More information

Overview of Database Management

Overview of Database Management Overview of Database Management M. Tamer Özsu David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Fall 2012 CS 348 Overview of Database Management

More information

B2.2-R4: INTRODUCTION TO DATABASE MANAGEMENT SYSTEM

B2.2-R4: INTRODUCTION TO DATABASE MANAGEMENT SYSTEM B2.2-R4: INTRODUCTION TO DATABASE MANAGEMENT SYSTEM NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered

More information

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added? DBMS Questions 1.) Which type of file is part of the Oracle database? A.) B.) C.) D.) Control file Password file Parameter files Archived log files 2.) Which statements are use to UNLOCK the user? A.)

More information

Component 4: Introduction to Information and Computer Science

Component 4: Introduction to Information and Computer Science 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

More information

ECS 165A: Introduction to Database Systems

ECS 165A: Introduction to Database Systems ECS 165A: Introduction to Database Systems Todd J. Green based on material and slides by Michael Gertz and Bertram Ludäscher Winter 2011 Dept. of Computer Science UC Davis ECS-165A WQ 11 1 1. Introduction

More information

CSE 132A. Database Systems Principles

CSE 132A. Database Systems Principles CSE 132A Database Systems Principles Prof. Victor Vianu 1 Data Management An evolving, expanding field: Classical stand-alone databases (Oracle, DB2, SQL Server) Computer science is becoming data-centric:

More information

CS 220 Databases Entity/Relationship Model Part 2

CS 220 Databases Entity/Relationship Model Part 2 CS 220 Databases Entity/Relationship Model Part 2 An Example: E/R Data Model Design Issue #3: Relationship Cardinalities Customer? Borrows? Loan Variations on Borrows: 1. Can a customer hold multiple loans?

More information

Lecture #8 Relational Database Systems

Lecture #8 Relational Database Systems KTH ROYAL INSTITUTE OF TECHNOLOGY Lecture #8 Relational Database Systems Contents Storing data Relational Database Systems Entity Relationship diagrams Normalisation of ER diagrams Tuple Relational Calculus

More information

Scheme G. Sample Test Paper-I

Scheme G. Sample Test Paper-I Scheme G Sample Test Paper-I Course Name : Computer Engineering Group Course Code : CO/CM/IF/CD/CW Marks : 25 Hours: 1 Hrs. Q.1 Attempt Any THREE. 09 Marks a) List any six applications of DBMS. b) Define

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model Chapter 2 Instructor: Vladimir Zadorozhny vladimir@sis.pitt.edu Information Science Program School of Information Sciences, University of Pittsburgh 1 Database: a Set of Relations

More information

Chapter 5: Logical Database Design and the Relational Model Part 1: Transforming EER Diagrams into Relations Modern Database Management 6 th Edition

Chapter 5: Logical Database Design and the Relational Model Part 1: Transforming EER Diagrams into Relations Modern Database Management 6 th Edition Chapter 5: Logical Database Design and the Relational Model Part 1: into Relations Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS

More information

CSE 530A Database Management Systems. Introduction. Washington University Fall 2013

CSE 530A Database Management Systems. Introduction. Washington University Fall 2013 CSE 530A Database Management Systems Introduction Washington University Fall 2013 Overview Time: Mon/Wed 7:00-8:30 PM Location: Crow 206 Instructor: Michael Plezbert TA: Gene Lee Websites: http://classes.engineering.wustl.edu/cse530/

More information

3. Relational Model and Relational Algebra

3. Relational Model and Relational Algebra ECS-165A WQ 11 36 3. Relational Model and Relational Algebra Contents Fundamental Concepts of the Relational Model Integrity Constraints Translation ER schema Relational Database Schema Relational Algebra

More information

Modern Systems Analysis and Design

Modern Systems Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring System Requirements: Conceptual Data Modeling 10.1 Copyright 2002 Prentice-Hall,

More information

CSC 443 Database Management Systems. Data and Its Structure

CSC 443 Database Management Systems. Data and Its Structure CSC 443 Database Management Systems Lecture 3 The Relational Data Model Data and Its Structure Data is actually stored as bits, but it is difficult to work with data at this level. It is convenient to

More information

The Entity-Relationship Diagram

The Entity-Relationship Diagram The Entity-Relationship Diagram Overview of Database Design Conceptual design: (ER Model is used at this stage.) What are the entities and relationships in the enterprise? What information about these

More information

INTRO TO RDBMS-OODBMS-ORDBMS. Seema Sirpal Delhi University Computer Centre

INTRO TO RDBMS-OODBMS-ORDBMS. Seema Sirpal Delhi University Computer Centre INTRO TO RDBMS-OODBMS-ORDBMS Seema Sirpal Delhi University Computer Centre Databases Data - raw facts/details DATABASE- A shared collection of logically related data (and a description of this data), designed

More information

COMP 5138 Relational Database Management Systems. Week 5 : Basic SQL. Today s Agenda. Overview. Basic SQL Queries. Joins Queries

COMP 5138 Relational Database Management Systems. Week 5 : Basic SQL. Today s Agenda. Overview. Basic SQL Queries. Joins Queries COMP 5138 Relational Database Management Systems Week 5 : Basic COMP5138 "Relational Database Managment Systems" J. Davis 2006 5-1 Today s Agenda Overview Basic Queries Joins Queries Aggregate Functions

More information