Data Model O Gives and idea of how the final system or software will look after and the development is completed O This concept is exactly like real world.

Slides:



Advertisements
Similar presentations
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Chapter 2 Data Models.
Database Systems: Design, Implementation, and Management Ninth Edition
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Introduction to Databases
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 1 File Systems and Databases
File Systems and Databases
Geographic Information Systems
Ch1: File Systems and Databases Hachim Haddouti
Introduction to Databases Transparencies
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 2 Data Models Database Systems, 8th Edition 1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
Data Base Management System
Academic Year 2014 Spring.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
IST Databases and DBMSs Todd S. Bacastow January 2005.
What is a Database? A database is any collection of data.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
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.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Technical Session By: Prof. Adarsh Patel.
Database Design - Lecture 2
Introduction: Databases and Database Users
Database Systems: Design, Implementation, and Management Ninth Edition
Technology Guide 3 Data & Databases.
CS 474 Database Design and Application Terminology Jan 11, 2000.
311: Management Information Systems Database Systems Chapter 3.
 Data Model Data Model  Categories of Data Models Categories of Data Models  Object Based Data Models Object Based Data Models  Physical Data Models.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
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.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Introduction to Databases Angela Clark University of South Alabama.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Fundamental of Database Systems
Database Systems: Design, Implementation, and Management Tenth Edition
CS4222 Principles of Database System
Database Management.
Outline Types of Databases and Database Applications Basic Definitions
Database Management System
Data Models.
Geographic Information Systems
 DATAABSTRACTION  INSTANCES& SCHEMAS  DATA MODELS.
Introduction to Database Management System
MANAGING DATA RESOURCES
File Systems and Databases
Data Model.
UNIT-I Introduction to Database Management Systems
Presentation transcript:

Data Model O Gives and idea of how the final system or software will look after and the development is completed O This concept is exactly like real world modeling in which before constructing any project (Buildings, Bridges, Towers) engineers create a model for it and gives the idea of how a project will look like after construction. O A data model is an overview of a software system which describes how data can be represented and accessed from software system after its complete implementation. O Data models define data elements and relationships among various data elements for a specified system. O A data model is a way of finding tool for both business and IT professionals which uses a set of symbols and text to precisely explain a subset of real information to improve communication within the organisation and thereby lead to more flexible and stable application environment.

Importance of Data Models O A data model is a set of concepts that can be used to describe the structure of data in a database O Data models are used to support the development of information systems by providing the definition and format of data to be involved in future system. O Data model is acting like a guideline for development also gives an idea about possible alternatives to achieve targeted solution. O A data model can sometimes be referred to as data structure especially in the context of programming languages.

Advantages Of Data Model O Data model prevents the system from future risk and failure by defining structure of data in advance O As we got an idea of final system at the beginning of development itself so we can reduce the cost of project by proper planning and cost estimation as actual system is not yet developed O Data repetition and data type compatibility can be checked and removed with help of data model O We can improve Graphical User Interface (GUI) of system by making its model and get it approved by its future user so it will be simple for them to operate system and make entire system effective

Basic Building Block O The basic building block for any of the model is entities, attributes, relationships and constraints O ENTITY – A fundamental component of a model which has its own independent existence in real world. E.g. A Student, Faculty, Subject. An entity can be an object with physical existence or it may have logical existence. Entities like department, section, adults may have physical or logical existence.

Basic Building Block Contd O ATTRIBUTES O Each entity has its own properties which describes that entity, such properties are called as attributes O A particular entity will have some value for each of its attributes O EXAMPLE – Employee entity may be described by attributes name, age, phone etc. O RELATIONSHIPS O It is an association among several entities for e. g. Employee works for Department. O The degree of the relationship is the number of participating entity types in a particular relation O Data model uses three types of relationships

Types Of Relationships O One to one – One entity is associated with at most one other entity. O E.g. One department can have only one manager O One to Many – One entity is associated with any number of entities in other entity. O E.g. One teacher may teach to many students O Many to Many – One entity is associated with any number of entities in other entity. O E.g. Books in library issued by students

Business Rules O Database designer needs to take help from concepts such as entity, attributes and relationships to build a data model, but the above things are not sufficient to describe a system completely. O Business rules may define actors and prescribe how they should behave by setting constraints and help to manage business change in the system. O Business rules are statements of a discrete operational business policy or practice within specific organisations that constrains the business. It is intended to control or influence the behavior of the business.

Characteristics of Business Rules O Atomicity – Rule should define any one aspect of the system environment. O E.g. College should have students in it. O Business Format – Rule should be expressed in business terms understandable to business people. O E.g. ER diagrams, Object diagrams etc. O Business Commonality – Each rule should confirm business scope. O E.g. College system must define characteristics in college database

O Business Ownership – Each rule is governed by a business person who is responsible for verifying it, enforcing it and monitoring need for change. E.g. End user or customer is responsible for requirements submitted by him O Classification – Each rule can be classified by its data and constraints O Business Formalism – Each rule can be implemented in the related information system. Business rules should be consistent and non-redundant. O EXAMPLES O A student may take admission to college O One subject is taught by only one professor O A class consists of minimum 60 and maximum 80 students

Types of Business Rules O DEFINITIONS – Define some business terms. Definitions are incorporated in systems data dictionary. O E.g. A professor is someone who teaches to students O FACTS – Connect business terms in ways that make business sense. Facts are implemented as relationships between various data entities O E.g. A professor may have student. O CONSTRAINTS – Shows how business rules shows how business terms are connected with each other. Constraints usually state how many of one data entity can be related to another data entity O E.g. Each professor may teach up to four subjects

O DERIVATIONS – Enable new knowledge or actions. Derivations are often implemented as formulas and triggers. O E.g. A student pending fees is his fees paid minus total fees.

Hierarchical Model O First DBMS model. O Data sorted hierarchically in top down or bottom up approach. O Uses pointers to navigate between stored data. O Represents data as a hierarchical tree. O One parent node can have many child nodes but one child cannot have more than one parent. O EXAMPLE – Information Management System (IMS) from IBM.

Hierarchical Model Contd CEOPMPrMPLTLDeveloperPLTLDeveloperPrMPLTLDeveloperPMPrMPLTLDeveloper

Advantages Of Hierarchical Model O Conceptual Simplicity O Relationships between various levels is logically very simple. Hence database structure becomes easier to view O Database Security O Security is given by DBMS itself it does not depends on programmer has given security or not O Simple Creation, Updation And Access O It is simple to construct with the help of pointers. Adding and deleting records is easier. Faster and easy data retrieval O Database Integrity O There is always parent child relation between different levels and hence child records are attached with parent records which maintains data integrity O Data Independence O Itself maintains data independence thus reducing program efforts and its maintenance that is id one part of the code is changed no need to change the other part O Efficiency O Good performance when database contains large amount of data in which one record has many related records

Disadvantages O Complex implementation O Only data independence is not enough for designer and programmers to build database system they need to have knowledge of physical data storage which may be complex O Difficult to manage O Any change in location of data needs change in all application programs that accesses changed data. Data access is restricted by pointer path O Lack of structural independence O Change in database structure affects data access O Complex application programming O Programmers must know how data is stored and path of data storage O Limitations in implementation

Network Model O Uses pointers but without the need of parent child relationships. O Used in network databases. O Relationship between any two record types is called as SET. O EXAMPLE – IDS(Integrated Data Store) one of the products based on network models developed by IBM and North American Rockwell

Network Model Contd A C B FE D

Advantages of Network Model O Simple Design O Is simple and easy to design and understand O Ability to handle many types of relationship O Can handle one-to-many or many-to-many or other relationships and hence manages multi user environment O Ease of data access O An application can access a parent record and all the member records within a set O Data Independence O Application programs work independently of the data. Any changes made in data do not effect the application program O Conformance to standards O Facilitates the administrators portability by offering data creation by DDL and DML

Disadvantages O System Complexity O Data are accessed one record at a time hence the complexity for the system increases for accessing multiple records at a time O Lack Of Structural Independence O Any changes made to the database structure or data require the application programs to be modified before it can access data

Relational Model O Proposed by E. F. Codd O An attempt to simplify database structure by making use of tables and columns. O Collection of 2-dimensional tables which consists of rows and columns. O Tables are known as relations columns are known as attributes and rows are known as tuples. O Uses collection of tables to represent relationships amongst data. O Each database item is viewed as a record with attributes. A record with similar attributes is called as table. Each table contains a record of particular type O The database uses relational model called as RDBMS (Relational Database Management System)

Relational Model Contd. VALUE COLUMNS ROWS TABLE

Advantages Of Relational Model O Relational Algebra O Supports relational algebra, union, intersection, difference, Cartesian product, select, project, join and division O Dynamic View O View is not a part of physical schema, hence changing data in the table also changes the data present in the view. O SQL O English like language which can be used to access data form RDBMS. Most vendors support SQL. O Excellent Data Security O Support the concept of user rights thus meeting the needs of databases. O Performance O Performance and support to new hardware technologies and flexible for all types of data needs. O Scalability O Scalable and provide good support for the implementation of distributed systems and other advanced database systems

Entity Relationship Model O Defines data elements and relationships among various data elements for a specified system O Based on the perception of real world data that consists of set of entities (data items) and relationships among these entities O Popular high level conceptual model used for conceptual design of database O An entity is a fundamental component of ER model which is a thing in real world with its own independent existence. Example Student, Department etc. O Attributes are properties that describe the entities and its values become a major part of data stored in database O A particular entity will have some value for each of its attributes O Relationship is an association among several entities and is illustrated by diamond and read from left to right

Entity Relationship Model Contd DEPARTMENT EMPLOYEES DEPTNO EMPSAL EMPAGE EMPNOEMPNAME LOCATION DEPTNAME CONTAINS

Advantages of ER Model O Very Simple Design O Simple and easy to design logical view of data O Ease Of Representation O Designer, programmer, developer can understand system very easily by looking at an ER model constructed O Integrated With Relational Databases O Completely integrated with relational model which can offer well structured design process

Disadvantages of ER Model O Limited Constraint Representation O Model can display those constraint that are directly tied by relationships but not possible to represent some constraints like average marks etc. O No DML O Do not have any language by which we can insert data in database O Loss Of Information Content O Does not deal with actual data values so it may not be possible to represent information content of system

Object Model O Data is stored in the form of objects which are structures called classes that display the data within it. O Fields are instances of these classes called objects. O Used in File Management System. O DBMS developed is called OODBMS (Object Oriented Database Management System). O OOD can handle complex applications such as scientific experiments, geographical information system etc. O Draws its concept from real world objects which deals with data at higher level that is with the objects surrounding the data. O Represents database in terms of objects, attributes and their behaviors.

O Advantages O OO features provide a clear modular structure which is good for designing abstract data types where internal implementation details are hidden O Easy to maintain and modify existing code as we can create new model with small change in existing O Disadvantages O Often provided through object oriented languages such as C++ and Java O Practically very complex and inapplicable many times