DBDI-Topic3.pptx
Topic 3 - Data Models II
Course: AD2203 Database Design and Implementation
Last Revised: 12-08-2023
Table of Contents
Conceptual, Logical and Physical Models
Conceptual Modelling
Logical Modelling
Physical Modelling
Class Activity: Quiz
Conceptual to Physical Transformation
Entity to Tables Conversion
Attributes to Columns Conversion
Naming Restrictions
Instance to Row / Record Conversion
Unique Identifier to Primary Key Conversion
Relationships to Foreign Keys Conversion
Conceptual Modeling
Conceptual model captures functional and informational needs of a business.
Reflects current and possible future needs.
Does not address implementation.
Identifies important entities and their relationships; does not specify primary key but identifies a unique identifier.
Highest level of modeling, with the least detail.
Logical Modeling
Provides an abstract visualization of the database system.
Entity Relationship Diagram (ERD): A popular tool representing data requirements.
Represents entities and their relationships graphically.
Implementation-free model: stays consistent regardless of the database system ultimately built.
Goals:
Capture all information required.
Ensure information appears only once.
Avoid derivable information repetition.
Organize information logically.
Determines attributes, optionality, and relationships.
Physical Modeling
Extension to the logical data model.
Defines table structures, types, and precisions.
Identifies views, indexes, and how to implement objects.
Includes columns, primary keys, and foreign keys.
Conceptual to Physical Transformation
Entities to Tables Conversion: Table names in plural form.
Attributes to Columns Conversion: Names match attributes, with special characters replaced by underscores.
Naming Restrictions: Must start with a letter, contain up to 30 alphanumeric characters, unique within user accounts.
Instance to Row Conversion: Converts entity instances to record rows.
Unique Identifier (UID) to Primary Key (PK): UID is unique across instances; PK uniquely identifies table rows and cannot be null.
Relationships to Foreign Keys: Represents associations between entities; foreign key refers to primary key in another table.