Data Model.

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

Relational Databases Chapter 4.
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
File Systems and Databases
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Chapter One Overview of Database Objectives: -Introduction -DBMS architecture -Definitions -Data models -DB lifecycle.
Introduction to DBMS Purpose of Database Systems View of Data
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
1 Introduction to databases concepts CCIS – IS department Level 4.
Chapter 2 CIS Sungchul Hong
Database Technical Session By: Prof. Adarsh Patel.
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.
Database System Concepts and Architecture
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Database Environment Session 2 Course Name: Database System Year : 2013.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Chapter 2 Database Environment Pearson Education © 2009.
Chapter 3: Relational Databases
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to DBMS Purpose of Database Systems View of Data
Databases and DBMSs Todd S. Bacastow January 2005.
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
CS4222 Principles of Database System
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Database Management.
Chapter 2 Database Environment.
An Introduction to database system
Database Management:.
Chapter 1: Introduction
Database Management System
Introduction To Database Systems
Chapter 12 Information Systems.
Introduction What is a Database?.
Chapter 4 Relational Databases
Tools for Memory: Database Management Systems
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
 DATAABSTRACTION  INSTANCES& SCHEMAS  DATA MODELS.
Databases and Information Management
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Introduction to Database Management System
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
File Systems and Databases
Database Environment Transparencies
Database Systems Instructor Name: Lecture-3.
Introduction to DBMS Purpose of Database Systems View of Data
Database Design Hacettepe University
UNIT-I Introduction to Database Management Systems
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 1: Introduction
Presentation transcript:

Data Model

Different types of data model Entity – Relationship (E-R) Model. Relational Model Object –Based Data Model Semi structured Data Model Network Model Hierarchical data model

The Entity Relationship Model ER Model consists of a collection of basic objects called entities Relationships among these objects.

Relational Model The relational model uses a collection of tables to represent both data and the relationships among those data. It is record based model Each table contains records ( fields or attributes)

Relational Model (cont…) Advantage : Structure independence Conceptual (Theoretical) Simplicity A powerful database management system Disadvantage Transaction Process is not efficient Processing time is low

Object –Based Data Model The object oriented model can be seen as extending the E-R model with notions of encapsulation methods (functions) and object identity.

Object –Based Data Model (cont…) Advantage : Exceptional conceptual simplicity Visual representation Effective communication tool Integrated with the relational database model Disadvantage Limited constraint representation Limited relationship representation No data manipulation language Loss of information content

Semi structured data model The semi structure data model permits the specification of data where individual data items of the same type have different set of attributes. Example XML ( Extensible Markup Language)

Network Model It is data structure diagram Advantage Disadvantage Data independence Conceptual simplicity Easy to design Disadvantage Lack of structure independence

Hierarchical Model It uses tree structure diagram Advantage Simple Easy to update Design is simple Database security Efficiency Disadvantage Implementation complexity Difficult to manage

Database Languages

Database Languages A database system provides two different types of languages. They are Data Definition Language To specify the database schema Data Manipulation Language To express database queries and updates

Data Definition Language Specifies the database schema by a set of definitions Result of compilation of DDL statements is a set of tables that is stored in a special file called data dictionary.

Active data dictionary A data dictionary is a file that contains metadata (that is data about data). This file is consulted before actual data are read or modified in the database system. Active data dictionary Created and maintained automatically by the DBMS Passive Data dictionary Managed by users used more during design and development stage

Data dictionary should contain information about Data structures and types of data Domain information about each attribute (columns) Their relation to other entities (Require a user to specify what data are needed from tables) Documentary and technical information regarding systems and design features. Access Control information Details of logic structures that are mapped into the database Resource usage detail

Referential Integrity The data values stored in the database must satisfy certain consistency constraints Domain constraints Example Integer types, character types, date and time types. Referential Integrity Refer another table or attribute Min balance Rs 1000 Authorization Permit access (read, insert, update, delete)

Data Manipulation Language (DML) DML is a language that enables users to access or manipulate data as organized by the appropriate data model. Retrieval of information stored in the database. Insertion of new information Deletion of information Modification of information DML Procedural Non procedural (Declarative)

Procedural DMLs Non Procedural DMLs Require a user to specify what data are needed and how to get those data. Non Procedural DMLs Require a user to specify what data are needed without specifying how to get those data.