Universita’ di Milano Bicocca Carlo Batini Course in Data Base Design

Slides:



Advertisements
Similar presentations
Technology Guide 3 Data and Database T3-1. IT for Management Prof. Efraim Turban T3-2 File Management Hierarchy of data for a computer-based file Record.
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Lecture Two Database Environment Based on Chapter Two of this book:
Database System Concepts and Architecture Dr. Ali Obaidi.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Introduction to Data bases concepts
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 2 CIS Sungchul Hong
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.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Database Organization and Design
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
CS 1308 Computer Literacy and the Internet
This course will help you understand the latest technologies & how they work. You will lean how to develop computer programs to solve problems.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Database Environment Session 2 Course Name: Database System Year : 2013.
Course Aims This course will help you understand the latest technologies & how they work. You will lean how to develop computer programs to solve problems.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Copyright © 2011 Ramez Elmasri and Shamkant Navathe Chapter 2 Database System Concepts and Architecture.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Databases and DBMSs Todd S. Bacastow January
Introduction to DBMS Purpose of Database Systems View of Data
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
Database Development Lifecycle
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Introduction to Databases
Roles in the Database Environment
University of Milano Bicocca, Italy Carlo Batini
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Database Management.
Database Development (8 May 2017).
Chapter 2: Database System Concepts and Architecture - Outline
Chapter 2 Database Environment.
University of Milano Bicocca Carlo Batini Course on Data Base Design
An Introduction to database system
Chapter 1: Introduction
Chapter 2 Database System Concepts and Architecture
Database System Concepts and Architecture
CS422 Principles of Database Systems Course Overview
University of Milano Bicocca, Italy Carlo Batini
Databases and Database Management Systems Chapter 9
Conceptual data modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction to Databases
Introduction to Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Database.
2018, Fall Pusan National University Ki-Joune Li
Database Environment Transparencies
Databases.
Database Systems Instructor Name: Lecture-3.
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Chapter 2 Database Environment Pearson Education © 2014.
Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Course Instructor: Supriya Gupta Asstt. Prof
Database Dr. Roueida Mohammed.
Presentation transcript:

Universita’ di Milano Bicocca Carlo Batini Course in Data Base Design Part 1 – Introduction to Data Bases

© Carlo Batini, 2015 This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/

High level conceptual map

Low-level conceptual map

A thermometer

Organizational system and Information System Input: Goods or requests of Services Output: Goods or delivered Services Processes Human Resources Infor- mation ICT Technologies Hardware Software Network Data Information System

Computer structure

Two tables

Two tables

Two software applications using data Courses of Professors Salaries of Professors Course Assignment Salary Management

The new set of tables

The data base approach Courses Course Assignment Professors Salaries Course Assignment Salary Management Professors

Database Management Systems allow concurrent and efficient access to the data base Courses Salaries Course Assignment Salary Management Professors Database Management System

The new set of tables Salaries Professors Courses Level Yearly Salary 1 20.000 2 25.000 3 30.000 4 35.000 Course # Prof Id Prof. Surname Level 37 1 Xu 4 29 16 2 Smith 3 Courses Student Id Prof Id Grade 37 1 80 29 95 16 2 85

The new set of tables

Database Management System and its relationship with a computer Software applications Users DBMS Secondary Memory Computer

Hierarchical and relational models of data Student Id Course Id Grade 12127 37 80 29 90 18 85 23344 95 Student Id Course Id Grade 12127 37 80 29 95 18 85 23344

Hierarchical Relational Student Id Course Id Grade 12127 37 A 29 C 18 B 23344 Student Id Course Id Grade 12127 37 A 29 C 18 B 23344

Databases as representation of a piece of reality using a data model

A relation (or table)

Reality, database, schema and instance Representation Model Database Concepts Schema Values of concepts Instance

Exercise 1.1 - Given the following database, reply to the following questions

Design phase of the Database life cycle Database schema Schema Design Students, with Student Id and Surname Relational model Student (Student Id, Surname)

Instance update phase

Student Data Schema Data Values Student Id Course Id Grade 12127 37 80 29 95 18 85 23344 Data Values

DB Design LC Conceptual design Conceptual schema Logical design Logical schema Relational model Conceptual design Requirements Entity Relationship Model DB Design LC

Assume we are in a Chinese University (where grades are among 0 and 100). You want to represent: three exams passed by a student with Student Id = 12127 referring to: 1. Course with Course Id = 37 and exam passed with grade 80. 2. Course with Course Id = 29 and exam passed with grade 90. 3. Course with Course Id 18 and exam passed with grade 85. one exam passed by a student with Student Id = 23344 referring to: 1. Course with Course Id = 29 and Exam passed with grade 95.

Query phase Database instance Query Query language E.g. Which surname has the Student with StudentId = 29? Table result of query E.g. Xu

Databases as representation of a piece of reality using a data model

Central Processing Secondary Memory Unit Channels Main memory Input 10-8/10-9 seconds 10-2 External World Input Output Devices

Conceptual design and Logical design Conceptual schema Logical design Logical schema Relational model (closer to the DBMS) Conceptual design Requirements Entity Relationship Model (closer to the user) Conceptual design and Logical design

Concepts introduced in Part 1

Resti

Student Schema Data Student Id Course Id Grade 12127 37 80 29 95 18 85 23344 Data

Student Data Schema Data Values Student Id Course Id Grade 12127 37 80 29 95 18 85 23344 Data Values

Design phase of the Database life cycle

Instance Update phase Database schema Create and update Relational instances Manipulation language Relation instance (e.g. Student Id = 37, Surname = Wang Student Id = 29, Surnaqme = Xu Database Instance

three exams passed by a student with Student Id = 12127 referring to: Assume we are in a Chinese University (where grades are among 0 and 100). You want to represent: three exams passed by a student with Student Id = 12127 referring to: 1. Course with Course Id = 37 and exam passed with grade 80. 2. Course with Course Id = 29 and exam passed with grade 90. 3. Course with Course Id 18 and exam passed with grade 85. one exam passed by a student with Student Id = 23344 referring to: 1. Course with Course Id = 29 and Exam passed with grade 95. Assume we are in a Chinese University (where grades are between 0 and 100). You want to represent: three exams passed by a student with Student Id = 12127 referring to: 1. Course with Course Id = 37 and exam passed with grade 80. 2. Course with Course Id = 29 and exam passed with grade 90. 3. Course with Course Id 18 and exam passed with grade 85. one exam passed by a student with Student Id = 23344 referring to: 1. Course with Course Id = 29 and Exam passed with grade 95.

Modeling Relational Model Student Student Id Course Id Grade 12127 37 Assume we are in a Chinese University (where grades are between 0 and 100). You want to represent: three exams passed by a student with Student Id = 12127 referring to: 1. Course with Course Id = 37 and exam passed with grade 80. 2. Course with Course Id = 29 and exam passed with grade 90. 3. Course with Course Id 18 and exam passed with grade 85. one exam passed by a student with Student Id = 23344 referring to: 1. Course with Course Id = 29 and Exam passed with grade 95. Relational Model Modeling Student Student Id Course Id Grade 12127 37 80 29 95 18 85 23344

Courses Course Assignment Professors Salary Management Salaries

Hierarchical and relational models of data Student Student Student Id Course Id Grade 12127 37 80 29 90 18 85 23344 95 Student Id Course Id Grade 12127 37 80 29 90 18 85 23344 95 Hierarchical Model Relational Model