SlideShare a Scribd company logo
1 of 17
Unit 4
Relational Database Design
Relational database design
• Relational database design (RDD) models information
and data into a set of tables with rows and columns.
Each row of a relation/table represents a record, and
each column represents an attribute of data.
• The Structured Query Language (SQL) is used to
manipulate relational databases. The design of a
relational database is composed of four stages
• Define relations/attributes
• Define primary keys
• Define relationships
• Normalization
Introduction to Relational Mappings
• A relational mapping transforms any object data
member type to a corresponding relational
database (SQL) data source representation in any
supported relational database. Relational
mappings let you map an object model into a
relational data model.
• Relational mappings transform object data
members to relational database fields. Use them
to map simple data types including primitives
(such as int), JDK classes (such as String), and
large object (LOB) values.
Mapping Process
• Create table for a relationship.
• Add the primary keys of all participating
Entities as fields of table with their respective
data types.
• If relationship has any attribute, add each
attribute as field of table.
• Declare a primary key composing all the
primary keys of participating entities.
• Declare all foreign key constraints.
Convert ER diagram to table
Schema:student(Rollno,firsname,lastname,city,street,housen)
Rule 5: For Binary relationships with
cardinality ratio
unit 4.pptx
unit 4.pptx
unit 4.pptx
unit 4.pptx
unit 4.pptx
unit 4.pptx
unit 4.pptx
unit 4.pptx

More Related Content

Similar to unit 4.pptx

12 si(systems analysis and design )
12 si(systems analysis and design )12 si(systems analysis and design )
12 si(systems analysis and design )Nurdin Al-Azies
 
Selecting the right database type for your knowledge management needs.
Selecting the right database type for your knowledge management needs.Selecting the right database type for your knowledge management needs.
Selecting the right database type for your knowledge management needs.Synaptica, LLC
 
Python programming
Python programmingPython programming
Python programmingSwetha544947
 
BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2Kelvin Chan
 
Relational databases
Relational databasesRelational databases
Relational databasesshams mshirb
 
Database design phase.pptx BY SIR KHURAM GCUF
Database design phase.pptx BY SIR KHURAM GCUFDatabase design phase.pptx BY SIR KHURAM GCUF
Database design phase.pptx BY SIR KHURAM GCUFusman122497
 
Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03Jotham Gadot
 
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docxAB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docxbartholomeocoombs
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfTamiratDejene1
 
Relational databases.pdf
Relational databases.pdfRelational databases.pdf
Relational databases.pdfchandiruirene
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdfTENZING LHADON
 
Four Types of Data Models
Four Types of Data ModelsFour Types of Data Models
Four Types of Data ModelsDeanna Medina
 

Similar to unit 4.pptx (20)

12 si(systems analysis and design )
12 si(systems analysis and design )12 si(systems analysis and design )
12 si(systems analysis and design )
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
2 db sys concept
2 db sys concept2 db sys concept
2 db sys concept
 
Selecting the right database type for your knowledge management needs.
Selecting the right database type for your knowledge management needs.Selecting the right database type for your knowledge management needs.
Selecting the right database type for your knowledge management needs.
 
Design approach
Design approachDesign approach
Design approach
 
Python programming
Python programmingPython programming
Python programming
 
oracle
oracle oracle
oracle
 
BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2
 
RDBMS Model
RDBMS ModelRDBMS Model
RDBMS Model
 
Relational databases
Relational databasesRelational databases
Relational databases
 
MS Access.pptx
MS Access.pptxMS Access.pptx
MS Access.pptx
 
Database design phase.pptx BY SIR KHURAM GCUF
Database design phase.pptx BY SIR KHURAM GCUFDatabase design phase.pptx BY SIR KHURAM GCUF
Database design phase.pptx BY SIR KHURAM GCUF
 
Aparna RDBMS PPT.pptx
Aparna RDBMS PPT.pptxAparna RDBMS PPT.pptx
Aparna RDBMS PPT.pptx
 
RowanDay4.pptx
RowanDay4.pptxRowanDay4.pptx
RowanDay4.pptx
 
Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03
 
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docxAB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
Relational databases.pdf
Relational databases.pdfRelational databases.pdf
Relational databases.pdf
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdf
 
Four Types of Data Models
Four Types of Data ModelsFour Types of Data Models
Four Types of Data Models
 

Recently uploaded

In vitro evaluation of antibacterial activity of chloroform extract Andrograp...
In vitro evaluation of antibacterial activity of chloroform extract Andrograp...In vitro evaluation of antibacterial activity of chloroform extract Andrograp...
In vitro evaluation of antibacterial activity of chloroform extract Andrograp...Open Access Research Paper
 
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...CIFOR-ICRAF
 
Introducing Blue Carbon Deck seeking for actionable partnerships
Introducing Blue Carbon Deck seeking for actionable partnershipsIntroducing Blue Carbon Deck seeking for actionable partnerships
Introducing Blue Carbon Deck seeking for actionable partnershipsCIFOR-ICRAF
 
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...Amil baba
 
A Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with MangrovesA Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with MangrovesCIFOR-ICRAF
 
Presentation on GLOBALISATION IN MBA sem
Presentation on GLOBALISATION IN MBA semPresentation on GLOBALISATION IN MBA sem
Presentation on GLOBALISATION IN MBA semAnikaSingh30
 
A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...Mark Jaeno P. Duyan
 
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...Aggregage
 
Impacts of agriculture on the environment.
Impacts of agriculture on the environment.Impacts of agriculture on the environment.
Impacts of agriculture on the environment.AyushKumar76331
 
EFFLUENT TREATMENT PLANT For PHARMA INDUSTRY
EFFLUENT TREATMENT PLANT For PHARMA INDUSTRYEFFLUENT TREATMENT PLANT For PHARMA INDUSTRY
EFFLUENT TREATMENT PLANT For PHARMA INDUSTRYSyed Atif Naseem
 
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...Model Neeha Mumbai
 
Cooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and PerspectivesCooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and PerspectivesCIFOR-ICRAF
 
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuseslidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reusedhanalakshmi88488
 
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...Travis Hills MN
 
Data analysis and findings
Data analysis and findingsData analysis and findings
Data analysis and findingsCIFOR-ICRAF
 
Rising temperatures also mean that more plant pests are appearing earlier and...
Rising temperatures also mean that more plant pests are appearing earlier and...Rising temperatures also mean that more plant pests are appearing earlier and...
Rising temperatures also mean that more plant pests are appearing earlier and...Christina Parmionova
 
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...marcuskenyatta275
 
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCarbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCIFOR-ICRAF
 

Recently uploaded (20)

In vitro evaluation of antibacterial activity of chloroform extract Andrograp...
In vitro evaluation of antibacterial activity of chloroform extract Andrograp...In vitro evaluation of antibacterial activity of chloroform extract Andrograp...
In vitro evaluation of antibacterial activity of chloroform extract Andrograp...
 
Rosen 2017 Isranalytica Mg in Tap Water.pdf
Rosen  2017 Isranalytica Mg in Tap Water.pdfRosen  2017 Isranalytica Mg in Tap Water.pdf
Rosen 2017 Isranalytica Mg in Tap Water.pdf
 
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
 
Introducing Blue Carbon Deck seeking for actionable partnerships
Introducing Blue Carbon Deck seeking for actionable partnershipsIntroducing Blue Carbon Deck seeking for actionable partnerships
Introducing Blue Carbon Deck seeking for actionable partnerships
 
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
 
A Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with MangrovesA Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with Mangroves
 
Presentation on GLOBALISATION IN MBA sem
Presentation on GLOBALISATION IN MBA semPresentation on GLOBALISATION IN MBA sem
Presentation on GLOBALISATION IN MBA sem
 
A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...
 
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
 
Impacts of agriculture on the environment.
Impacts of agriculture on the environment.Impacts of agriculture on the environment.
Impacts of agriculture on the environment.
 
EFFLUENT TREATMENT PLANT For PHARMA INDUSTRY
EFFLUENT TREATMENT PLANT For PHARMA INDUSTRYEFFLUENT TREATMENT PLANT For PHARMA INDUSTRY
EFFLUENT TREATMENT PLANT For PHARMA INDUSTRY
 
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
 
Cooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and PerspectivesCooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and Perspectives
 
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuseslidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
 
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
 
Data analysis and findings
Data analysis and findingsData analysis and findings
Data analysis and findings
 
Rising temperatures also mean that more plant pests are appearing earlier and...
Rising temperatures also mean that more plant pests are appearing earlier and...Rising temperatures also mean that more plant pests are appearing earlier and...
Rising temperatures also mean that more plant pests are appearing earlier and...
 
Elemental Analysis of Plants using ICP-OES(2023)
Elemental Analysis of Plants using ICP-OES(2023)Elemental Analysis of Plants using ICP-OES(2023)
Elemental Analysis of Plants using ICP-OES(2023)
 
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
 
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCarbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
 

unit 4.pptx

  • 2. Relational database design • Relational database design (RDD) models information and data into a set of tables with rows and columns. Each row of a relation/table represents a record, and each column represents an attribute of data. • The Structured Query Language (SQL) is used to manipulate relational databases. The design of a relational database is composed of four stages • Define relations/attributes • Define primary keys • Define relationships • Normalization
  • 3. Introduction to Relational Mappings • A relational mapping transforms any object data member type to a corresponding relational database (SQL) data source representation in any supported relational database. Relational mappings let you map an object model into a relational data model. • Relational mappings transform object data members to relational database fields. Use them to map simple data types including primitives (such as int), JDK classes (such as String), and large object (LOB) values.
  • 4. Mapping Process • Create table for a relationship. • Add the primary keys of all participating Entities as fields of table with their respective data types. • If relationship has any attribute, add each attribute as field of table. • Declare a primary key composing all the primary keys of participating entities. • Declare all foreign key constraints.
  • 7.
  • 8.
  • 9. Rule 5: For Binary relationships with cardinality ratio