0% found this document useful (0 votes)
40 views10 pages

Data Models

Cs

Uploaded by

devileela921
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views10 pages

Data Models

Cs

Uploaded by

devileela921
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Data Models


In database management systems (DBMS), data models define the
logical structure of the data and the relationships between them.

They provide a way to organize and represent data in a database
system.

Data models serve as blueprints for designing databases, ensuring
data integrity, consistency, and efficient storage and retrieval.

1
Types of data models

There are several types of data models used in DBMS, here we will
look at a few of them.

Relational Data Model

Semi-Structured Data Model

Entity-Relationship (ER) Data Model

Object-Oriented Data Model

2
Relational Data Model

The relational data model organizes data into tables (relations) consisting of rows (tuples) and
columns (attributes).

Each table represents an entity, and each row represents a unique instance of that entity.

Relationships between entities are established through keys, such as primary keys and foreign
keys.

The model is based on set theory and relational algebra, providing a mathematical foundation
for data manipulation.

Relational database management systems (RDBMS) like MySQL, PostgreSQL, Oracle, and SQL
Server are based on this model.

It offers advantages like data independence, data integrity, and ease of querying through SQL
(Structured Query Language).

3
Relational Data Model (use case)

Online Retail: Relational databases power many e-commerce
platforms by managing product catalogs, customer orders,
payments, and inventory levels. They enable efficient querying and
transaction processing, supporting high-volume online retail
operations.

4
Semi-Structured Data Model

Semi-structured data does not adhere to a rigid schema like the relational
model but still has some structure.

It allows for flexibility in representing data with varying or evolving schema
requirements.

Common formats for semi-structured data include XML (eXtensible Markup
Language) and JSON (JavaScript Object Notation).

Semi-structured data is often used in scenarios where the schema may
change frequently or where the data is inherently variable, such as in web
data, documents, and certain types of NoSQL databases.

5
Semi-Structured Data Model (use case)

Social Media Analytics: Social media platforms generate vast
amounts of semi-structured data in the form of posts, comments,
likes, and shares. Analyzing this data using semi-structured formats
enables extracting insights into user behavior, trends, and
sentiment analysis.

6
Entity-Relationship (ER) Model

The ER model is a conceptual data model used for database design and modeling.

It represents entities (objects), attributes of those entities, and the relationships
between them.

Entities are represented as rectangles, attributes as ovals, and relationships as
diamonds.

Entities have properties or attributes that describe them, and relationships define
how entities are related to each other.

ER diagrams are commonly used to visualize and design database schemas before
implementing them in a specific DBMS.

7
Entity-Relationship (ER) Model (use case)

Database Design: The ER model is widely used for designing and
modeling relational databases before implementation. It helps
visualize entities, attributes, and relationships between them,
facilitating better database schema design and optimization.

8
Object-Oriented Data Model (use case)

Multimedia Content Management: Object-oriented databases are
well-suited for managing multimedia content like images, videos,
and audio files. Each multimedia object can be represented as an
object with attributes and methods for processing and
manipulating the content.

9
Object-Oriented Data Model

The object-oriented data model represents data as objects, similar to object-oriented
programming languages.

Each object contains data (attributes) and methods (functions) that operate on the
data.

It supports concepts like encapsulation, inheritance, and polymorphism, enabling
complex data structures and behaviors.

Object-oriented databases (OODBMS) store data in a way that closely mirrors the
object-oriented programming paradigm.

This model is useful for modeling real-world entities and relationships in applications
where complex data structures and behaviors are required.

10

You might also like