data models in database management system
TRANSCRIPT
![Page 1: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/1.jpg)
All Data models in DBMS
![Page 2: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/2.jpg)
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
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar2
![Page 3: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/3.jpg)
A data is known as the row fact which is stored incomputers memory and used by the user as theoutput.
Example-21.
Data
![Page 4: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/4.jpg)
InformationCollection of data its called information.
Example-House no 21C-S-1,Sch No 78 Indore
![Page 5: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/5.jpg)
DatabaseA collection of inter related data its called database.
![Page 6: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/6.jpg)
Data Model A data model is a collection of concepts thatcan be used to describe the structure of adatabase.
![Page 7: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/7.jpg)
Types of Data Models
1.Record Base model
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar7
![Page 8: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/8.jpg)
Types of Data Models
1.Record Base model • A record based data modelis used to specify the overalllogical structure of thedatabase.
• Each record type defines afixed no. of fields having afixed length.
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar8
![Page 9: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/9.jpg)
Relational model
• In the relational model, data is
organized in two-dimensional tablescalled relations.
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar9
![Page 10: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/10.jpg)
Relations
No Course-Name Unit
CIS15 Intro to C 5
CIS17 Intro to Java 5
CIS19 UNIX 4
CIS51 Networking 5
Attributes
Tuples
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar10
![Page 11: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/11.jpg)
• Attributes.
Each column in a relation is called an attribute.
Relations
• Tuples
Each row in a relation is called a tuple. Atuple defines a collection of attribute values.
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar11
![Page 12: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/12.jpg)
Network ModelIn the network model, the entities are
organized in a graph, in which some entitiescan be accessed through several paths
No Name ID Name Course
No Name Unit ID Name
DEPARTMENT
COURSES
STUDENTS
PROFESSORS
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar12
![Page 13: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/13.jpg)
Hierarchical Model
The hierarchical data model organizesdata in a tree structure
![Page 14: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/14.jpg)
PROFESSORS
No Name
ID Name CourseNo Name Unit
ID Name
DEPARTMENT
COURSES STUDENTS
Hierarchical Model
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar14
![Page 15: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/15.jpg)
2.Entity Relationship Model
• The E-R (entity-relationship) data model views the real world as a set of basic objects (entities) and relationshipsamong these objects
ER Model Basics•Entity•Entity Set•Attributes•Relationship
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar15
![Page 16: Data Models In Database Management System](https://reader031.vdocument.in/reader031/viewer/2022032114/55a6c6ff1a28abae048b461e/html5/thumbnails/16.jpg)
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.
Prepared By Amad Ahmad BSSE 5th Semester Abasyn University Peshawar16