Databases and Database Management Systems Chapter 9

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Tenth Edition
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Entity Relationship (E-R) Modeling
Modeling & Designing the Database
Chapter 4 Database Management Systems. Chapter 4Slide 2 What is a Database Management System (DBMS)?  Database An organized collection of related data.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Web-Enabled Decision Support Systems
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Concepts and Terminology Introduction to Database.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Chapter(1) Introduction and conceptual modeling. Basic definitions Data : know facts that can be recorded and have an implicit. Database: a collection.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Databases Illuminated Chapter 3 The Entity Relationship Model.
An Introduction to Database Systems دانشگاه علم و فناوری مازندران - طراحی و ایجاد بانک های اطلاعاتی 1.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
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.
Fundamental of Database Systems
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Introduction to Databases Transparencies
Introduction to DBMS Purpose of Database Systems View of Data
Database Systems: Design, Implementation, and Management Tenth Edition
CS4222 Principles of Database System
Logical Database Design and the Rational Model
Entity-Relationship Model
Database Management.
Entity- Relationship (ER) Model
Datab ase Systems Week 1 by Zohaib Jan.
Outline Types of Databases and Database Applications Basic Definitions
Chapter 1: Introduction
Chapter 2 Database System Concepts and Architecture
Introduction to Computing
Fundamentals of Information Systems, Sixth Edition
Data Models.
Chapter 4 Relational Databases
Database Management System
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Databases and Information Management
CS 174: Server-Side Web Programming February 12 Class Meeting
Chapter 2 Database Environment Pearson Education © 2009.
Introduction to Database Systems
Data Base System Lecture : Database Environment
Database.
Entity Relationship Diagrams
Chapter 4 Entity Relationship (ER) Modeling
Database Environment Transparencies
Databases.
Data Model.
Databases and Information Management
Database Modeling using Entity Relationship Model (E-R Model)
Introduction to DBMS Purpose of Database Systems View of Data
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Database Design Hacettepe University
UNIT-I Introduction to Database Management Systems
Chapter 2 Database Environment Pearson Education © 2014.
Data Models in DBMS A model is a representation of reality, 'real world' objects and events, associations. Data Model can be defined as an integrated collection.
Terms: Data: Database: Database Management System: INTRODUCTION
Database Dr. Roueida Mohammed.
Syllabus Study Introduction to database Relational algebra
Presentation transcript:

Databases and Database Management Systems Chapter 9 October 6 University Databases and Database Management Systems Chapter 9 Prof. Dr/ Moussa Ibrahim Moussa Dean of Faculty of Information Systems and Computer Science

INTRODUCTION Database is a collection of related data and data is a collection of facts and figures that can be processed to produce information. Mostly data represents recordable facts. Data aids in producing information, which is based on facts. For example, if we have data about marks obtained by all students, we can then conclude about toppers and average marks.

A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information.

Characteristics Real-world entity Relation-based tables Isolation of data and application Less redundancy Consistency Query Language ACID Properties Multiuser and Concurrent Access Multiple views Security

A Simple Relational Database Example

Users

Administrators: Administrators maintain the DBMS and are responsible for administrating the database. They are responsible to look after its usage and by whom it should be used. They create access profiles for users and apply limitations to maintain isolation and force security. Administrators also look after DBMS resources like system license, required tools, and other software and hardware related maintenance.

 Designers: Designers are the group of people who actually work on the designing part of the database. They keep a close watch on what data should be kept and in what format. They identify and design the whole set of entities, relations, constraints, and views.

 End Users: End users are those who actually reap the benefits of having a DBMS. End users can range from simple viewers who pay attention to the logs or market rates to sophisticated users such as business analysts.

DBMS ARCHITECTURE The design of a DBMS depends on its architecture. It can be centralized or decentralized or hierarchical.

3-tier Architecture

DATA MODELS Data models define how the logical structure of a database is modeled. Data Models are fundamental entities to introduce abstraction in a DBMS. Data models define how data is connected to each other and how they are processed and stored inside the system.

Entity-Relationship Mode  Entities and their attributes.  Relationships among entities.

 Entities and their attributes. An entity in an ER Model is a real-world entity having properties called attributes. Every attribute is defined by its set of values called domain. For example, in a school database, a student is considered as an entity.

 Relationships among entities. * one to one * one to many o many to one * many to many

Relational Model

The main highlights of this model are:  Data is stored in tables called relations.  Relations can be normalized.  In normalized relations, values saved are atomic values.  Each row in a relation contains a unique value.  Each column in a relation contains values from a same domain.

DATA SCHEMAS

A database schema can be divided broadly into two categories:  Physical Database Schema: This schema pertains to the actual storage of data and its form of storage like files, indices, etc. It defines how the data will be stored in a secondary storage.  Logical Database Schema: This schema defines all the logical constraints that need to be applied on the data stored. It defines tables, views, and integrity constraints.

DATA INDEPENDENCE

Logical Data Independence Logical data is data about database, that is, it stores information about how data is managed inside. For example, a table (relation) stored in the database and all its constraints applied on that relation. Logical data independence is a kind of mechanism, which liberalizes itself from actual data stored on the disk. If we do some changes on table format, it should not change the data residing on the disk.

Physical Data Independence All the schemas are logical, and the actual data is stored in bit format on the disk. Physical data independence is the power to change the physical data without impacting the schema or logical data. For example, in case we want to change or upgrade the storage system itself

ER MODEL – BASIC CONCEPTS The ER model defines the conceptual view of a database. It works around real world entities and the associations among them. At view level, the ER model is considered a good option for designing databases.

Entity An entity can be a real-world object, either animate or inanimate, that can be easily identifiable. For example, in a school database, students, teachers, classes, and courses offered can be considered as entities.

Attributes Entities are represented by means of their properties called attributes. Types of Attributes Simple attribute Composite attribute Derived attribute Single-value attribute Multi-value attribute

Relationship Relationship Set Degree of Relationship Mapping Cardinalities One-to-one relation

One-to-many relation Many-to-one relation

Many-to-many relation

ER DIAGRAM REPRESENTATION Entity Entities are represented by means of rectangles. Rectangles are named with the entity set they represent.

Attributes Attributes are the properties of entities. Attributes are represented by means of ellipses. Every ellipse represents one attribute and is directly connected to its entity (rectangle). Simple Attributes

Composite Attributes

Multivalued Attributes

Derived Attributes

Relationship Binary Relationship and Cardinality - One-to-one - One-to-many

- Many-to-one - Many-to-many

Participation Constraints  Total Participation: Each entity is involved in the relationship. Total participation is represented by double lines.  Partial participation: Not all entities are involved in the relationship. Partial participation is represented by single lines.

THANKS