0% found this document useful (0 votes)
18 views17 pages

CC105

The document discusses data modeling, which is the process of creating a visual representation of data structure and relationships in a system. It outlines the differences between data modeling and data models, the purpose of data modeling, types of data models, and essential components such as entities, attributes, relationships, constraints, and schemas. Additionally, it provides best practices for database naming conventions to enhance readability and maintainability.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views17 pages

CC105

The document discusses data modeling, which is the process of creating a visual representation of data structure and relationships in a system. It outlines the differences between data modeling and data models, the purpose of data modeling, types of data models, and essential components such as entities, attributes, relationships, constraints, and schemas. Additionally, it provides best practices for database naming conventions to enhance readability and maintainability.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

DATA MODELING

AND DATA
MODELS
By: Group 1
Members
Aguas, Lealyn Calma, Jhamica Islajiya D.
Almeda, Archer Miles M. Cenabre, Mark Angelo
Alonzo, Loraine S. Contreras, Jenica Joan P.
Balisi, Kurl Matthew G. De Guzman, Darlene Joy
Bayaborda, Francis Rain P. T.
Cabalu, Carlos Daniel D. De Guzman, Leeroy
Ebio, Jio Riel M.
Data
Modeling
Data modeling is the process of creating a visual
map of how data is structured and related in a
system. It helps organize information so that
databases can store, retrieve, and manage it
efficiently.
Data Models
Data models are like blueprints for
organizing and structuring data in a
system. They define how data is stored,
connected, and used.
Difference
Between Data
Modeling And
Data Models
Data Modeling is the process of creating a
structured design for data, while Data Models
are the actual frameworks or representations
that result from this process.
The Purpose of Data
Modeling
The key benefits of data modelling
include:
•Better Understanding of Data
•Improved Database Design
•Data Accuracy and
Consistency
•Enhanced System Performance
•Easier Maintenance and
Scalability
Types of Data Models
Data models are categorized into
three types based on their level
detail and abstraction:
a. Conceptual Data Model
A conceptual data model is a high-level plan
that shows the main data elements and their
relationships in a system.
b. Logical Data Model
A logical data model is a detailed blueprint of
how data is organized, including specific
attributes, relationships, and rules, but without
focusing on technical storage details.
c. Physical Data Model
A physical data model is a detailed plan that
shows how data will be stored in a database. It
includes tables, columns, data types, and
technical details like indexes and storage.
Building Blocks of Data
Model
The building blocks of a data model are the essential components used
to design and structure data in a system.
They include:

1. Entities (What?)
• Represent real-world objects or concepts (e.g., Student, Teacher,
Product).
• Stored as tables in databases.

2. Attributes (Details?)
• Describe properties of an entity (e.g., Student Name, Age, Email).
• Stored as columns in tables.
Building Blocks of Data
Model
3. Relationships (Connections?)
• Define how entities are related (e.g., Students enroll in Courses).
• Represented as links or foreign keys in databases.

4. Constraints (Rules?)
• Ensure data integrity and accuracy (e.g., Primary Key, Unique, Not
Null).

5. Schemas (Structure?)
• The overall organization of data in a database (e.g., grouping tables
into categories).
Database Naming
Conventions and Best
Practices
Using a consistent naming convention improves readability,
maintainability, and scalability of a database. Here are key guidelines:

1. General Naming Rules


• Use meaningful names
• Use lowercase letters
• Use underscores (_) instead of spaces
• Be consistent
Database Naming
Conventions and Best
Practices
2. Table Naming
• Use plural form
• Describe the purpose

3. Column Naming
• Use singular form
• Use descriptive names
Database Naming
Conventions and Best
Practices
4. Primary & Foreign Keys
• Primary Key Naming
• Foreign Key Naming

5. Index Naming Conventions


• Follow this pattern: idx_table_column
Database Naming
Conventions and Best
Practices
6. Constraint Naming Conventions
• Use prefixes for clarity

7. Stored Procedures & Functions Naming


• Use sp_ for stored procedures
• Use fn_ for functions

8. Avoid Reserved Keywords


• Avoid using SQL reserved words as names .
THANK
YOU!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy