SlideShare a Scribd company logo
Database Design
An Introduction to Database
Concepts and Design
Introduction to Databases
• - A database is an organized collection of
structured information.
• - It allows efficient data retrieval,
management, and storage.
• - Examples: banking systems, e-commerce
platforms, hospital records.
Comparison to File Systems
• - File systems store data in separate files
without connections.
• - Difficult to handle large data volumes,
redundancy, and consistency.
• - Databases solve these problems with central
management and structured access.
Problems with File Systems
• - Redundancy and inconsistency.
• - Difficulty in accessing and managing data.
• - Poor security and lack of concurrency
control.
Advantages of Databases
• - Data consistency and integrity.
• - Reduced redundancy.
• - Secure, concurrent, and efficient access.
File System vs Database
Using Conceptual Data Models
• - High-level models describe database
structure without technical details.
• - Entity-Relationship (ER) models focus on
entities, attributes, and relationships.
Entity Types
• - An entity type represents a class of objects.
• - Example: Employee, Department, Student.
Entity Sets
• - A collection of entities of the same type.
• - Example: All employees in a company form
the "Employee" entity set.
Attributes and Keys
• - Attributes define properties of entities (e.g.,
Name, Age).
• - Keys uniquely identify each entity (e.g.,
StudentID).
Relationship Types
• - Define how entities are associated.
• - Example: Employee "works for" Department.
Relationship Sets
• - A collection of similar relationships.
• - Example: All instances of "works for"
relationships.
Roles in Relationships
• - Roles clarify entity participation.
• - Example: Supervisor and Subordinate in
"Supervises" relationship.
Entities, Attributes, Relationships
This Photo by Unknown Author is licensed under CC BY-SA
Structural Constraints
• - Rules governing relationships (Cardinality:
1:1, 1:N, N:M).
• - Participation constraints (total or partial).
Weak Entity Types
• - Entities that depend on others for
identification.
• - Example: "Dependent" entity depends on
"Employee" entity.
ER Diagrams
• - Visual representation of entities, attributes,
and relationships.
• - Symbols: Rectangles (entities), Diamonds
(relationships), Ovals (attributes).
Naming Conventions
• - Use meaningful, consistent names.
• - Entities: singular nouns; Relationships: verbs.
Introduction to Keys
• - Unique attribute combinations identify entity
instances.
• - Support data integrity and retrieval.
ER Diagram with Weak Entity
This Photo by Unknown Author is licensed under CC BY-SA
Total vs Partial Participation
• Total Participation: Every entity instance must
participate (double line).
• Partial Participation: Some instances may not
participate (single line).
• Example: Every employee must work in a
department (total participation).
Cardinality Ratios Explained
• One-to-One (1:1): Each entity in A is related to
at most one entity in B.
• One-to-Many (1:N): One entity in A is related
to many entities in B.
• Many-to-Many (M:N): Many entities in A
relate to many in B.
Composite Attributes
• Composite attributes can be divided into
smaller sub-parts.
• Example: Address → Street, City, Zip Code.
• Useful for detailed information modeling.
Multivalued Attributes
• Multivalued attributes can have multiple
values for a single entity.
• Example: An employee with multiple phone
numbers.
• Represented with double ovals in ER diagrams.
Derived Attributes
• Derived attributes are calculated from other
attributes.
• Example: Age derived from Birthdate.
• Shown with dashed ovals in ER diagrams.
Identifying Relationships
• An identifying relationship links a weak entity
to its strong entity.
• The weak entity's table includes a foreign key
from the strong entity.
• Ensures data consistency and dependency.
Generalization vs Specialization
• Generalization: Bottom-up approach (combine
entities).
• Specialization: Top-down approach (divide into
sub-entities).
• Helps in managing inheritance among entities.
ER-to-Relational Mapping: 1:1
• For 1:1 relationships, the primary key of one
relation becomes the foreign key in another.
• Optionally merge both relations if
participation is total on both sides.
ER-to-Relational Mapping: 1:N
• For 1:N relationships, place the foreign key in
the relation on the 'N' side (many side).
• Example: Many employees belong to one
department.
ER-to-Relational Mapping: M:N
• For M:N relationships, create a new table.
• This table holds foreign keys referencing the
primary keys of the two related entities.
• Example: Students enrolled in Courses.

More Related Content

Similar to database_design_presentation, data base design presenttion (20)

PPTX
er-models.pptx
UmmerFarooq24
 
PPTX
DBMS_Data Model,Keys,Attributes,Relationship.pptx
DrThenmozhiKarunanit
 
PDF
Lecture 2 database management system.pdf
samerelking3
 
PPTX
E - R Models.pptx SQL and plsql database
ironman82715
 
PPTX
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
claritoBaluyot2
 
PPT
Chapter3
Jafar Nesargi
 
PPT
Chapter3
Jafar Nesargi
 
PPTX
Unit-1-DBMS-SUN-4 everything you need to know.pptx
nirajsharmapuneiat
 
PPT
E-R Model Entity relationship model, Entity, Attributes.ppt
VanshGumber
 
PPT
Entity relationship Model, Unit-1.2-1.ppt
VanshGumber
 
PPTX
rdbms3, dbms,dbms,rdbmssssssssssssssssssssssssssssssssss
VaibhavSrivastav52
 
PPT
Database design
FLYMAN TECHNOLOGY LIMITED
 
PPTX
Basic building entity relationship model
ironman82715
 
PPT
ER-Model-ER Diagram
Saranya Natarajan
 
PPT
Data modeling using the entity relationship model
Jafar Nesargi
 
PPTX
ER-Diagram.pptx , ER diagram , entity reltaionship diagram , data base
satpathyarpita98
 
PPTX
ER Modeling and Introduction to RDBMS
Rubal Sagwal
 
PPTX
entityrelationshipmodel.pptx
ThangamaniR3
 
PPSX
Cn presentation on the topic called as re modelling
g30162363
 
PPTX
Unit 2 new.pptx for the actual dbms chad
sanketkashyap6
 
er-models.pptx
UmmerFarooq24
 
DBMS_Data Model,Keys,Attributes,Relationship.pptx
DrThenmozhiKarunanit
 
Lecture 2 database management system.pdf
samerelking3
 
E - R Models.pptx SQL and plsql database
ironman82715
 
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
claritoBaluyot2
 
Chapter3
Jafar Nesargi
 
Chapter3
Jafar Nesargi
 
Unit-1-DBMS-SUN-4 everything you need to know.pptx
nirajsharmapuneiat
 
E-R Model Entity relationship model, Entity, Attributes.ppt
VanshGumber
 
Entity relationship Model, Unit-1.2-1.ppt
VanshGumber
 
rdbms3, dbms,dbms,rdbmssssssssssssssssssssssssssssssssss
VaibhavSrivastav52
 
Database design
FLYMAN TECHNOLOGY LIMITED
 
Basic building entity relationship model
ironman82715
 
ER-Model-ER Diagram
Saranya Natarajan
 
Data modeling using the entity relationship model
Jafar Nesargi
 
ER-Diagram.pptx , ER diagram , entity reltaionship diagram , data base
satpathyarpita98
 
ER Modeling and Introduction to RDBMS
Rubal Sagwal
 
entityrelationshipmodel.pptx
ThangamaniR3
 
Cn presentation on the topic called as re modelling
g30162363
 
Unit 2 new.pptx for the actual dbms chad
sanketkashyap6
 

Recently uploaded (20)

PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PPTX
Latest Features in Odoo 18 - Odoo slides
Celine George
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
PPT on the Development of Education in the Victorian England
Beena E S
 
PPTX
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PPTX
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
LEGAL ASPECTS OF PSYCHIATRUC NURSING.pptx
PoojaSen20
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
How to Manage Promotions in Odoo 18 Sales
Celine George
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
Latest Features in Odoo 18 - Odoo slides
Celine George
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
community health nursing question paper 2.pdf
Prince kumar
 
PPT on the Development of Education in the Victorian England
Beena E S
 
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
LEGAL ASPECTS OF PSYCHIATRUC NURSING.pptx
PoojaSen20
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
How to Manage Promotions in Odoo 18 Sales
Celine George
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
Ad

database_design_presentation, data base design presenttion

  • 1. Database Design An Introduction to Database Concepts and Design
  • 2. Introduction to Databases • - A database is an organized collection of structured information. • - It allows efficient data retrieval, management, and storage. • - Examples: banking systems, e-commerce platforms, hospital records.
  • 3. Comparison to File Systems • - File systems store data in separate files without connections. • - Difficult to handle large data volumes, redundancy, and consistency. • - Databases solve these problems with central management and structured access.
  • 4. Problems with File Systems • - Redundancy and inconsistency. • - Difficulty in accessing and managing data. • - Poor security and lack of concurrency control.
  • 5. Advantages of Databases • - Data consistency and integrity. • - Reduced redundancy. • - Secure, concurrent, and efficient access.
  • 6. File System vs Database
  • 7. Using Conceptual Data Models • - High-level models describe database structure without technical details. • - Entity-Relationship (ER) models focus on entities, attributes, and relationships.
  • 8. Entity Types • - An entity type represents a class of objects. • - Example: Employee, Department, Student.
  • 9. Entity Sets • - A collection of entities of the same type. • - Example: All employees in a company form the "Employee" entity set.
  • 10. Attributes and Keys • - Attributes define properties of entities (e.g., Name, Age). • - Keys uniquely identify each entity (e.g., StudentID).
  • 11. Relationship Types • - Define how entities are associated. • - Example: Employee "works for" Department.
  • 12. Relationship Sets • - A collection of similar relationships. • - Example: All instances of "works for" relationships.
  • 13. Roles in Relationships • - Roles clarify entity participation. • - Example: Supervisor and Subordinate in "Supervises" relationship.
  • 14. Entities, Attributes, Relationships This Photo by Unknown Author is licensed under CC BY-SA
  • 15. Structural Constraints • - Rules governing relationships (Cardinality: 1:1, 1:N, N:M). • - Participation constraints (total or partial).
  • 16. Weak Entity Types • - Entities that depend on others for identification. • - Example: "Dependent" entity depends on "Employee" entity.
  • 17. ER Diagrams • - Visual representation of entities, attributes, and relationships. • - Symbols: Rectangles (entities), Diamonds (relationships), Ovals (attributes).
  • 18. Naming Conventions • - Use meaningful, consistent names. • - Entities: singular nouns; Relationships: verbs.
  • 19. Introduction to Keys • - Unique attribute combinations identify entity instances. • - Support data integrity and retrieval.
  • 20. ER Diagram with Weak Entity This Photo by Unknown Author is licensed under CC BY-SA
  • 21. Total vs Partial Participation • Total Participation: Every entity instance must participate (double line). • Partial Participation: Some instances may not participate (single line). • Example: Every employee must work in a department (total participation).
  • 22. Cardinality Ratios Explained • One-to-One (1:1): Each entity in A is related to at most one entity in B. • One-to-Many (1:N): One entity in A is related to many entities in B. • Many-to-Many (M:N): Many entities in A relate to many in B.
  • 23. Composite Attributes • Composite attributes can be divided into smaller sub-parts. • Example: Address → Street, City, Zip Code. • Useful for detailed information modeling.
  • 24. Multivalued Attributes • Multivalued attributes can have multiple values for a single entity. • Example: An employee with multiple phone numbers. • Represented with double ovals in ER diagrams.
  • 25. Derived Attributes • Derived attributes are calculated from other attributes. • Example: Age derived from Birthdate. • Shown with dashed ovals in ER diagrams.
  • 26. Identifying Relationships • An identifying relationship links a weak entity to its strong entity. • The weak entity's table includes a foreign key from the strong entity. • Ensures data consistency and dependency.
  • 27. Generalization vs Specialization • Generalization: Bottom-up approach (combine entities). • Specialization: Top-down approach (divide into sub-entities). • Helps in managing inheritance among entities.
  • 28. ER-to-Relational Mapping: 1:1 • For 1:1 relationships, the primary key of one relation becomes the foreign key in another. • Optionally merge both relations if participation is total on both sides.
  • 29. ER-to-Relational Mapping: 1:N • For 1:N relationships, place the foreign key in the relation on the 'N' side (many side). • Example: Many employees belong to one department.
  • 30. ER-to-Relational Mapping: M:N • For M:N relationships, create a new table. • This table holds foreign keys referencing the primary keys of the two related entities. • Example: Students enrolled in Courses.