SlideShare a Scribd company logo
Relational Database
Design for Information System
Entity Relationship Diagram
 A well designed ERD automatically
delivers a reliable relational logical
database
ERD has Entities and Relationships
between Entities
Extracted from the Data requirements …
Nouns are Entities and Verbs are
Relationships
Case Study
 All users views are merged - View integration
approach
 Merge local logical data models into global model
 Check global logical data model
 Check for future growth
 Review global logical data model with users
ER model for the Business user views of
StayHome.
Tables for the Business user views of StayHome
diagram for the
StayHome database
system
Table structures for the global logical data model of
StayHome.
Staff Manages Branch
(1:1) relationship: (a) individual
examples
Staff Manages Branch
(1:1) relationship:(b) multiplicity
Branch Has Staff (1:*) relationship:
(a) individual examples;
Branch Has Staff (1:*) relationship:
(b) multiplicity.
Superclasses and subclasses
 Superclass An entity that includes one or more
distinct groupings of its occurrences, which require to
be represented in a data model.
 Subclass A distinct grouping of occurrences of an
entity, which require to be represented in a data
model.
 Participation constraint Determines whether every
occurrence in the superclass must participate as a
member of a subclass.
 Disjoint constraint Describes the relationship
between members of the subclasses and indicates
whether it’s possible for a member of a superclass to
be a member of one, or more than one, subclass.
Normalization
 A technique for producing a set of tables with
desirable properties that support the requirements
of a user or company.
 In 1972, Dr E.F. Codd developed the technique of
normalization to support the design of databases
based on the relational model.
 Normalization is often performed as a series of
tests on a table to determine whether it satisfies or
violates the rules for a given normal form. T
 There are several normal forms, although the most
commonly used ones are called first normal form
(1NF), second normal form (2NF), and third normal
form (3NF).
 All these normal forms are based on rules about
Data redundancy and update
anomalies
 Redundant data: the details of a branch are repeated for
every member of staff located at that branch. In contrast, the
details of each branch appear only once in the Branch table
and only the branch number (branchNo) is repeated in the
Staff table, to represent where each member of staff is
located.
 Tables that have redundant data may have problems called
update anomalies, which are classified as insertion,
Normal Forms
 First normal form (1NF) A table in which the
intersection of every column
 Second normal form (2NF) A table that is
already in 1NF and in which the values in each
non-primary-key column can be worked out from
the values in all the columns that make up the
primary key. and record contains only one value.
 Third normal form (3NF) A table that is already
in 1NF and 2NF, and in which the values in all
non-primary-key columns can be worked out from
only the primary key column(s) and no other
columns.
Logical Design
Physical Design
Exercise - Individual
 Implement physical database design in MySQL
(Use Wamp or Xamp Server)
 Physical Database Design for the selected
scenario
 Mission Statement till populated database
 Logical Database size should be about similar to
database size in book
 Wednesday 27-03-2022

More Related Content

Similar to Lecture 02-2-IIS.pptx

Sap abap
Sap abapSap abap
Sap abap
Jugul Crasta
 
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
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
affairs cloud
 
System Data Modelling Tools
System Data Modelling ToolsSystem Data Modelling Tools
System Data Modelling Tools
Liam Dunphy
 
Normalization
NormalizationNormalization
Normalization
Altafsoomro
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
ambika93
 
Normalization
NormalizationNormalization
Normalization
Shakila Mahjabin
 
Intro To DataBase
Intro To DataBaseIntro To DataBase
Intro To DataBase
DevMix
 
ITB - UNIT 4.pdf
ITB - UNIT 4.pdfITB - UNIT 4.pdf
ITB - UNIT 4.pdf
SOMASUNDARAM T
 
Nunes database
Nunes databaseNunes database
Nunes database
Rohini17
 
Advanced Database Systems CS352Unit 4 Individual Project.docx
Advanced Database Systems CS352Unit 4 Individual Project.docxAdvanced Database Systems CS352Unit 4 Individual Project.docx
Advanced Database Systems CS352Unit 4 Individual Project.docx
nettletondevon
 
Advance Sqlite3
Advance Sqlite3Advance Sqlite3
Advance Sqlite3Raghu nath
 
Database DESIGN CONCEPTSDr. Dexter Francis2Data Design
Database DESIGN CONCEPTSDr. Dexter Francis2Data DesignDatabase DESIGN CONCEPTSDr. Dexter Francis2Data Design
Database DESIGN CONCEPTSDr. Dexter Francis2Data Design
OllieShoresna
 
Normalization case
Normalization caseNormalization case
Normalization case
Prosanta Ghosh
 

Similar to Lecture 02-2-IIS.pptx (20)

Sap abap
Sap abapSap abap
Sap abap
 
12 si(systems analysis and design )
12 si(systems analysis and design )12 si(systems analysis and design )
12 si(systems analysis and design )
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Fg d
Fg dFg d
Fg d
 
System Data Modelling Tools
System Data Modelling ToolsSystem Data Modelling Tools
System Data Modelling Tools
 
Normalization
NormalizationNormalization
Normalization
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
Research gadot
Research gadotResearch gadot
Research gadot
 
Normalization
NormalizationNormalization
Normalization
 
Intro To DataBase
Intro To DataBaseIntro To DataBase
Intro To DataBase
 
ITB - UNIT 4.pdf
ITB - UNIT 4.pdfITB - UNIT 4.pdf
ITB - UNIT 4.pdf
 
Ch09
Ch09Ch09
Ch09
 
Nunes database
Nunes databaseNunes database
Nunes database
 
DBMS (1).pptx
DBMS (1).pptxDBMS (1).pptx
DBMS (1).pptx
 
Advanced Database Systems CS352Unit 4 Individual Project.docx
Advanced Database Systems CS352Unit 4 Individual Project.docxAdvanced Database Systems CS352Unit 4 Individual Project.docx
Advanced Database Systems CS352Unit 4 Individual Project.docx
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Advance Sqlite3
Advance Sqlite3Advance Sqlite3
Advance Sqlite3
 
Database DESIGN CONCEPTSDr. Dexter Francis2Data Design
Database DESIGN CONCEPTSDr. Dexter Francis2Data DesignDatabase DESIGN CONCEPTSDr. Dexter Francis2Data Design
Database DESIGN CONCEPTSDr. Dexter Francis2Data Design
 
Normalization case
Normalization caseNormalization case
Normalization case
 

More from Asadkhan47384

DWH_ Lec-01 nmnmmnmn asad khan asad.pptx
DWH_ Lec-01 nmnmmnmn asad khan asad.pptxDWH_ Lec-01 nmnmmnmn asad khan asad.pptx
DWH_ Lec-01 nmnmmnmn asad khan asad.pptx
Asadkhan47384
 
cactus-.pptx
cactus-.pptxcactus-.pptx
cactus-.pptx
Asadkhan47384
 
Usability in Practice.pptx
Usability in Practice.pptxUsability in Practice.pptx
Usability in Practice.pptx
Asadkhan47384
 
Lecture 08B - Logical-DWH-Model-Pending.pptx
Lecture 08B - Logical-DWH-Model-Pending.pptxLecture 08B - Logical-DWH-Model-Pending.pptx
Lecture 08B - Logical-DWH-Model-Pending.pptx
Asadkhan47384
 
Lecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.pptLecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.ppt
Asadkhan47384
 
Lecture 10 - DataMiningEngineering.ppt
Lecture 10 - DataMiningEngineering.pptLecture 10 - DataMiningEngineering.ppt
Lecture 10 - DataMiningEngineering.ppt
Asadkhan47384
 
HCI_Lec-12.pptx
HCI_Lec-12.pptxHCI_Lec-12.pptx
HCI_Lec-12.pptx
Asadkhan47384
 
Lecture 05-SchemaMatching.ppt
Lecture 05-SchemaMatching.pptLecture 05-SchemaMatching.ppt
Lecture 05-SchemaMatching.ppt
Asadkhan47384
 
Lecture 06 -IIS-OLAP.pptx
Lecture 06 -IIS-OLAP.pptxLecture 06 -IIS-OLAP.pptx
Lecture 06 -IIS-OLAP.pptx
Asadkhan47384
 
Lecture 01-1-IIS.pptx
Lecture 01-1-IIS.pptxLecture 01-1-IIS.pptx
Lecture 01-1-IIS.pptx
Asadkhan47384
 
HCI_ Lec-5.pptx
HCI_ Lec-5.pptxHCI_ Lec-5.pptx
HCI_ Lec-5.pptx
Asadkhan47384
 
Lecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.pptLecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.ppt
Asadkhan47384
 

More from Asadkhan47384 (15)

DWH_ Lec-01 nmnmmnmn asad khan asad.pptx
DWH_ Lec-01 nmnmmnmn asad khan asad.pptxDWH_ Lec-01 nmnmmnmn asad khan asad.pptx
DWH_ Lec-01 nmnmmnmn asad khan asad.pptx
 
cactus-.pptx
cactus-.pptxcactus-.pptx
cactus-.pptx
 
Usability in Practice.pptx
Usability in Practice.pptxUsability in Practice.pptx
Usability in Practice.pptx
 
HCI_Lec-15.pptx
HCI_Lec-15.pptxHCI_Lec-15.pptx
HCI_Lec-15.pptx
 
Lecture 08B - Logical-DWH-Model-Pending.pptx
Lecture 08B - Logical-DWH-Model-Pending.pptxLecture 08B - Logical-DWH-Model-Pending.pptx
Lecture 08B - Logical-DWH-Model-Pending.pptx
 
Lecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.pptLecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.ppt
 
Lecture 10 - DataMiningEngineering.ppt
Lecture 10 - DataMiningEngineering.pptLecture 10 - DataMiningEngineering.ppt
Lecture 10 - DataMiningEngineering.ppt
 
HCI_Lec-12.pptx
HCI_Lec-12.pptxHCI_Lec-12.pptx
HCI_Lec-12.pptx
 
Lecture 05-SchemaMatching.ppt
Lecture 05-SchemaMatching.pptLecture 05-SchemaMatching.ppt
Lecture 05-SchemaMatching.ppt
 
Lecture 06 -IIS-OLAP.pptx
Lecture 06 -IIS-OLAP.pptxLecture 06 -IIS-OLAP.pptx
Lecture 06 -IIS-OLAP.pptx
 
Lecture 01-1-IIS.pptx
Lecture 01-1-IIS.pptxLecture 01-1-IIS.pptx
Lecture 01-1-IIS.pptx
 
HCI_ Lec-5.pptx
HCI_ Lec-5.pptxHCI_ Lec-5.pptx
HCI_ Lec-5.pptx
 
HCI.pptx
HCI.pptxHCI.pptx
HCI.pptx
 
Lecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.pptLecture 06- Reading-SQLDataManipulation.ppt
Lecture 06- Reading-SQLDataManipulation.ppt
 
HCI.pptx
HCI.pptxHCI.pptx
HCI.pptx
 

Recently uploaded

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
ewymefz
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 

Recently uploaded (20)

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 

Lecture 02-2-IIS.pptx

  • 1. Relational Database Design for Information System
  • 2. Entity Relationship Diagram  A well designed ERD automatically delivers a reliable relational logical database ERD has Entities and Relationships between Entities Extracted from the Data requirements … Nouns are Entities and Verbs are Relationships
  • 3. Case Study  All users views are merged - View integration approach  Merge local logical data models into global model  Check global logical data model  Check for future growth  Review global logical data model with users
  • 4. ER model for the Business user views of StayHome.
  • 5. Tables for the Business user views of StayHome
  • 6. diagram for the StayHome database system
  • 7. Table structures for the global logical data model of StayHome.
  • 8. Staff Manages Branch (1:1) relationship: (a) individual examples
  • 9. Staff Manages Branch (1:1) relationship:(b) multiplicity
  • 10. Branch Has Staff (1:*) relationship: (a) individual examples;
  • 11. Branch Has Staff (1:*) relationship: (b) multiplicity.
  • 12. Superclasses and subclasses  Superclass An entity that includes one or more distinct groupings of its occurrences, which require to be represented in a data model.  Subclass A distinct grouping of occurrences of an entity, which require to be represented in a data model.  Participation constraint Determines whether every occurrence in the superclass must participate as a member of a subclass.  Disjoint constraint Describes the relationship between members of the subclasses and indicates whether it’s possible for a member of a superclass to be a member of one, or more than one, subclass.
  • 13.
  • 14.
  • 15. Normalization  A technique for producing a set of tables with desirable properties that support the requirements of a user or company.  In 1972, Dr E.F. Codd developed the technique of normalization to support the design of databases based on the relational model.  Normalization is often performed as a series of tests on a table to determine whether it satisfies or violates the rules for a given normal form. T  There are several normal forms, although the most commonly used ones are called first normal form (1NF), second normal form (2NF), and third normal form (3NF).  All these normal forms are based on rules about
  • 16. Data redundancy and update anomalies  Redundant data: the details of a branch are repeated for every member of staff located at that branch. In contrast, the details of each branch appear only once in the Branch table and only the branch number (branchNo) is repeated in the Staff table, to represent where each member of staff is located.  Tables that have redundant data may have problems called update anomalies, which are classified as insertion,
  • 17. Normal Forms  First normal form (1NF) A table in which the intersection of every column  Second normal form (2NF) A table that is already in 1NF and in which the values in each non-primary-key column can be worked out from the values in all the columns that make up the primary key. and record contains only one value.  Third normal form (3NF) A table that is already in 1NF and 2NF, and in which the values in all non-primary-key columns can be worked out from only the primary key column(s) and no other columns.
  • 19.
  • 21. Exercise - Individual  Implement physical database design in MySQL (Use Wamp or Xamp Server)  Physical Database Design for the selected scenario  Mission Statement till populated database  Logical Database size should be about similar to database size in book  Wednesday 27-03-2022