16
All Data models in DBMS Submitted By- Submitted To-

All data models in dbms

Embed Size (px)

Citation preview

Page 1: All data models in dbms

All Data models in

DBMS

Submitted By-

Submitted To-

Page 2: All data models in dbms

Overview

• Data

• Information

• Database

• Data Model

Types of Data Model

1. Record Base model

• Relationship model

• Network Model

• Hierarchical Model

2.Entity Relationship Model

3.Object-Oriented Model

Page 3: All data models in dbms

A data is known as the row fact which is stored in computers memory and used by the user as the output.

Example-21.

Data

Page 4: All data models in dbms

InformationCollection of data its called information.

Example-House no 21C-S-1,Sch No 78 Indore

Page 5: All data models in dbms

DatabaseA collection of inter related data its called database.

Page 6: All data models in dbms

Data Model A data model is a collection of concepts that can be used to describe the structure of a database.

Page 7: All data models in dbms

Types of Data Models

1.Record Base model

Relational mode

Network Model

Hierarchical Model

Page 8: All data models in dbms

Types of Data Models

1.Record Base model • A record based data model is used to specify the overall logical structure of the database.

• Each record type defines a fixed no. of fields having a fixed length.

Page 9: All data models in dbms

Relational model

• In the relational model, data is organized in two-dimensional tables called relations.

Page 10: All data models in dbms

Relations

A relation appears as a two-dimensional table.

No Course-Name Unit

CIS15 Intro to C 5

CIS17 Intro to Java 5

CIS19 UNIX 4

CIS51 Networking 5

Attributes

Tuples

Page 11: All data models in dbms

• Attributes.

Each column in a relation is called an attribute.

Relations

• Tuples

Each row in a relation is called a tuple. A tuple defines a collection of attribute values.

Page 12: All data models in dbms

Network ModelIn the network model, the entities are organized in a graph, in which some entities can be accessed through several paths

No Name ID Name Course

No Name Unit ID Name

DEPARTMENT

COURSES

STUDENTS

PROFESSORS

Page 13: All data models in dbms

Hierarchical Model

The hierarchical data model organizes data in a tree structure

Page 14: All data models in dbms

PROFESSORS

No Name

ID Name CourseNo Name Unit

ID Name

DEPARTMENT

COURSES STUDENTS

Hierarchical Model

Page 15: All data models in dbms

2.Entity Relationship Model

• The E-R (entity-relationship) data model views the real world as a set of basic objects (entities) and relationships among these objects

ER Model Basics•Entity•Entity Set•Attributes•Relationship

Page 16: All data models in dbms

Entity

• entity is a thing in the real world with an independent existance. and entity set is collection or set all entities of a particular entity type at any point of time.