Datamodel
Datamodel
Introduction
Unit - 1
Data Models
Aug. 25 2010
Outline
Definitions
Data Model
Definition: collection of logical constructs used to
model.
Operations on the data model may include basic operations and user-defined operations
Implementation models:
emphasis on how the data are represented in the database
Database Models
Conceptual models include
Many-to-many (M:N)
Implementation Database Models Hierarchical - IMS (Information Management System)
Efficiency in 1:M relationships and when uses require large numbers of transactions
Dominant in 1970s , when we used mainframe system with large databases
One-ownership
Data in the network model is represented by a collection of records Relationships among data are represented by links (Pointers) The records in the database are collection of graphs E.g.: Integrated Data Management System (IDMS) from Honeywell
Sometimes the value to be inserted into a particular cell may be unknown, or it may have no value. This is represented by a null
Null is not the same as zero, blank or an empty string
Relational Database: Any database whose logical organization is based on relational data model.
RDBMS: A DBMS that manages the relational database.
relationship
Object-oriented concept:
Objects or abstractions of real-world entities are stored Attributes describe properties
Collection of similar objects is a class, similar to entity set but contains procedure methods
Methods represent real world actions of classes Classes are organized in a class hierarchy Inheritance is the ability of object to inherit attributes and methods of classes above it
Lack of OODM
Complex navigational data access
an entity at a many end of a relationship can be related to only one entity at the one end this model is navigational data access is through defined relationships, efficient if searches follow predefined relationships but performs poorly otherwise, e.g for ad-hoc queries.
allows multiple parentage a single entity can be at the many ends of multiple relationships
navigational