SlideShare a Scribd company logo
1 of 14
Welcome to our
Presentation
Presentation Topic: Relational Schema
Group Members
 Rifat Rahman ID: 162-15-1049
 Hasan Haider ID: 162-15-1041
 Arifur Jaman ID: 153-15-607
 Shahedul Islam ID: 162-15-1029
 Mohammad Salim Hosen ID: 162-15-1044
Relational Model
 After designing the conceptual model of Database using ER
diagram, we need to convert the conceptual model in the relational
model which can be implemented using any RDMBS languages like
Oracle SQL, MySQL etc.
 Relational Model: Relational Model represents how data is stored
in Relational Databases.
 A relational database stores data in the form of relations (tables).
Relational Schema
 Relational Schema is a important terminology of Relational Model.
 Relation Schema: A relation schema represents name of the
relation with its attributes.
 e.g.; STUDENT (ROLL_NO, NAME, ADDRESS, PHONE and AGE) is
relation schema for STUDENT.
 If a schema has more than 1 relation, it is called Relational Schema.
ER Diagram to Relational Schema
Conversion
 The ER diagram represents the conceptual level of database
design meanwhile the relational schema is the logical level for
the database design.
 So to Convert ER diagram to Relational Schema We will be
following some simple rules.
Entities and Simple Attributes:
 An entity type within ER diagram is turned into a table. Each attribute
turns into a column (attribute) in the table. The key attribute of the
entity is the primary key of the table which is usually underlined.
 Persons( personid , name, lastname, email )
Multi-Valued Attributes
 A multi-valued attribute is usually represented with a double-line
oval. If you have a multi-valued attribute, take the attribute and turn
it into a new entity or table of its own. Add the primary (id) column
of the parent entity as a foreign key within the new table.
 Persons( personid , name, lastname, email )
Phones ( phoneid , personid, phone )
1:1 Relationships
 Persons( personid , name, lastname, email , wifeid )
 Wife ( wifeid , name )
1:N Relationships
 Persons( personid , name, lastname, email )
 House ( houseid , num , address, personid)
N:N Relationships
 Persons( personid , name, lastname, email )
 Countries ( countryid , name, code)
 HasRelat ( hasrelatid , personid , countryid)
Weak Entity
 Student(rollno,student_name)
 Dependent(rollno,dependent_name)
Specilization or Generalization
 Create tables for all higher-
level entities.
 Create tables for lower-level
entities.
 Add primary keys of higher-
level entities in the table of
lower-level entities.
 In lower-level tables, add all
other attributes of lower-level
entities.
 Person(person_id, name, age, gender)
 Student(person_id, rollno, student_name)
 Teacher(person_id, EmpId, teacher_name)
THANK YOU

More Related Content

What's hot

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity ConstraintsMegha yadav
 
Mapping cardinalities
Mapping cardinalitiesMapping cardinalities
Mapping cardinalitiesArafat Hossan
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraintsmadhav bansal
 
Er model ppt
Er model pptEr model ppt
Er model pptPihu Goel
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSssuser20b618
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modelingsontumax
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMSkoolkampus
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbmsmaryeem
 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architectureKumar
 

What's hot (20)

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Normalization in databases
Normalization in databasesNormalization in databases
Normalization in databases
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
Mapping cardinalities
Mapping cardinalitiesMapping cardinalities
Mapping cardinalities
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
 
Basic SQL and History
 Basic SQL and History Basic SQL and History
Basic SQL and History
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Dbms 4NF & 5NF
Dbms 4NF & 5NFDbms 4NF & 5NF
Dbms 4NF & 5NF
 
Er diagram
Er diagramEr diagram
Er diagram
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
 

Similar to Presentation on Relational Schema (Database)

The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...Raj vardhan
 
Schema relationship to E-R diagram
Schema relationship to E-R diagramSchema relationship to E-R diagram
Schema relationship to E-R diagramBadrul Alam
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]Bashir Rezaie
 
Reasoning of database consistency through description logics
Reasoning of database consistency through description logicsReasoning of database consistency through description logics
Reasoning of database consistency through description logicsAhmad karawash
 
relational model.pptx
relational model.pptxrelational model.pptx
relational model.pptxThangamaniR3
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraintsKumar
 
4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...
4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...
4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...ThangamaniR3
 
PhillyR 18-19 Kickoff - Data Structure Intro
PhillyR 18-19 Kickoff - Data Structure IntroPhillyR 18-19 Kickoff - Data Structure Intro
PhillyR 18-19 Kickoff - Data Structure IntroLeon Kim
 
Download different material from slide share
Download different material from slide shareDownload different material from slide share
Download different material from slide sharefanta teferi
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Modeloudesign
 
Relational database
Relational databaseRelational database
Relational databaseDucat
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramShakila Mahjabin
 
ENCh05.ppt
ENCh05.pptENCh05.ppt
ENCh05.pptBestnegi
 
erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdfvinayakjadhav94
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...Mustafa Kamel Mohammadi
 

Similar to Presentation on Relational Schema (Database) (20)

The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
 
Schema relationship to E-R diagram
Schema relationship to E-R diagramSchema relationship to E-R diagram
Schema relationship to E-R diagram
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
 
ERD.pptx
ERD.pptxERD.pptx
ERD.pptx
 
Reasoning of database consistency through description logics
Reasoning of database consistency through description logicsReasoning of database consistency through description logics
Reasoning of database consistency through description logics
 
relational model.pptx
relational model.pptxrelational model.pptx
relational model.pptx
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraints
 
4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...
4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...
4-therelationaldatamodelandrelationaldatabaseconstraints-140128022150-phpapp0...
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
RDBMS ERD
RDBMS ERDRDBMS ERD
RDBMS ERD
 
PhillyR 18-19 Kickoff - Data Structure Intro
PhillyR 18-19 Kickoff - Data Structure IntroPhillyR 18-19 Kickoff - Data Structure Intro
PhillyR 18-19 Kickoff - Data Structure Intro
 
Download different material from slide share
Download different material from slide shareDownload different material from slide share
Download different material from slide share
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
Relational Model
Relational ModelRelational Model
Relational Model
 
Relational database
Relational databaseRelational database
Relational database
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
ENCh05.ppt
ENCh05.pptENCh05.ppt
ENCh05.ppt
 
Ch3.pdf
Ch3.pdfCh3.pdf
Ch3.pdf
 
erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdf
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 

More from Salim Hosen

Restaurant management system
Restaurant management systemRestaurant management system
Restaurant management systemSalim Hosen
 
Presentation on computer ram
Presentation on computer ramPresentation on computer ram
Presentation on computer ramSalim Hosen
 
Presentation on Bio Informatics
Presentation on Bio InformaticsPresentation on Bio Informatics
Presentation on Bio InformaticsSalim Hosen
 
Presentation on iot restaurant project
Presentation on iot restaurant projectPresentation on iot restaurant project
Presentation on iot restaurant projectSalim Hosen
 
Famous Quotes of Famous People
Famous Quotes of Famous PeopleFamous Quotes of Famous People
Famous Quotes of Famous PeopleSalim Hosen
 
Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)Salim Hosen
 
Presentation on Graph
Presentation on GraphPresentation on Graph
Presentation on GraphSalim Hosen
 
Presentation on Variance
Presentation on VariancePresentation on Variance
Presentation on VarianceSalim Hosen
 
Presentation on Digital Image Processing
Presentation on Digital Image ProcessingPresentation on Digital Image Processing
Presentation on Digital Image ProcessingSalim Hosen
 
Intellectual Property Presentation
Intellectual Property PresentationIntellectual Property Presentation
Intellectual Property PresentationSalim Hosen
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio OverviewSalim Hosen
 
Presentation on Greedy Algorithm
Presentation on Greedy AlgorithmPresentation on Greedy Algorithm
Presentation on Greedy AlgorithmSalim Hosen
 
Presentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network LayerPresentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network LayerSalim Hosen
 
Presentation on RAM
Presentation on RAMPresentation on RAM
Presentation on RAMSalim Hosen
 
Presentation on BJT
Presentation on BJTPresentation on BJT
Presentation on BJTSalim Hosen
 
Application of Differential Equation
Application of Differential EquationApplication of Differential Equation
Application of Differential EquationSalim Hosen
 
Intellectual property
Intellectual propertyIntellectual property
Intellectual propertySalim Hosen
 

More from Salim Hosen (17)

Restaurant management system
Restaurant management systemRestaurant management system
Restaurant management system
 
Presentation on computer ram
Presentation on computer ramPresentation on computer ram
Presentation on computer ram
 
Presentation on Bio Informatics
Presentation on Bio InformaticsPresentation on Bio Informatics
Presentation on Bio Informatics
 
Presentation on iot restaurant project
Presentation on iot restaurant projectPresentation on iot restaurant project
Presentation on iot restaurant project
 
Famous Quotes of Famous People
Famous Quotes of Famous PeopleFamous Quotes of Famous People
Famous Quotes of Famous People
 
Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)
 
Presentation on Graph
Presentation on GraphPresentation on Graph
Presentation on Graph
 
Presentation on Variance
Presentation on VariancePresentation on Variance
Presentation on Variance
 
Presentation on Digital Image Processing
Presentation on Digital Image ProcessingPresentation on Digital Image Processing
Presentation on Digital Image Processing
 
Intellectual Property Presentation
Intellectual Property PresentationIntellectual Property Presentation
Intellectual Property Presentation
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio Overview
 
Presentation on Greedy Algorithm
Presentation on Greedy AlgorithmPresentation on Greedy Algorithm
Presentation on Greedy Algorithm
 
Presentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network LayerPresentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network Layer
 
Presentation on RAM
Presentation on RAMPresentation on RAM
Presentation on RAM
 
Presentation on BJT
Presentation on BJTPresentation on BJT
Presentation on BJT
 
Application of Differential Equation
Application of Differential EquationApplication of Differential Equation
Application of Differential Equation
 
Intellectual property
Intellectual propertyIntellectual property
Intellectual property
 

Recently uploaded

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...caitlingebhard1
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceIES VE
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....rightmanforbloodline
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 

Recently uploaded (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 

Presentation on Relational Schema (Database)

  • 1. Welcome to our Presentation Presentation Topic: Relational Schema
  • 2. Group Members  Rifat Rahman ID: 162-15-1049  Hasan Haider ID: 162-15-1041  Arifur Jaman ID: 153-15-607  Shahedul Islam ID: 162-15-1029  Mohammad Salim Hosen ID: 162-15-1044
  • 3. Relational Model  After designing the conceptual model of Database using ER diagram, we need to convert the conceptual model in the relational model which can be implemented using any RDMBS languages like Oracle SQL, MySQL etc.  Relational Model: Relational Model represents how data is stored in Relational Databases.  A relational database stores data in the form of relations (tables).
  • 4. Relational Schema  Relational Schema is a important terminology of Relational Model.  Relation Schema: A relation schema represents name of the relation with its attributes.  e.g.; STUDENT (ROLL_NO, NAME, ADDRESS, PHONE and AGE) is relation schema for STUDENT.  If a schema has more than 1 relation, it is called Relational Schema.
  • 5. ER Diagram to Relational Schema Conversion  The ER diagram represents the conceptual level of database design meanwhile the relational schema is the logical level for the database design.  So to Convert ER diagram to Relational Schema We will be following some simple rules.
  • 6. Entities and Simple Attributes:  An entity type within ER diagram is turned into a table. Each attribute turns into a column (attribute) in the table. The key attribute of the entity is the primary key of the table which is usually underlined.  Persons( personid , name, lastname, email )
  • 7. Multi-Valued Attributes  A multi-valued attribute is usually represented with a double-line oval. If you have a multi-valued attribute, take the attribute and turn it into a new entity or table of its own. Add the primary (id) column of the parent entity as a foreign key within the new table.  Persons( personid , name, lastname, email ) Phones ( phoneid , personid, phone )
  • 8. 1:1 Relationships  Persons( personid , name, lastname, email , wifeid )  Wife ( wifeid , name )
  • 9. 1:N Relationships  Persons( personid , name, lastname, email )  House ( houseid , num , address, personid)
  • 10. N:N Relationships  Persons( personid , name, lastname, email )  Countries ( countryid , name, code)  HasRelat ( hasrelatid , personid , countryid)
  • 11. Weak Entity  Student(rollno,student_name)  Dependent(rollno,dependent_name)
  • 12. Specilization or Generalization  Create tables for all higher- level entities.  Create tables for lower-level entities.  Add primary keys of higher- level entities in the table of lower-level entities.  In lower-level tables, add all other attributes of lower-level entities.
  • 13.  Person(person_id, name, age, gender)  Student(person_id, rollno, student_name)  Teacher(person_id, EmpId, teacher_name)