SlideShare une entreprise Scribd logo
1  sur  13
Introduction to Relational Databases 2
Data Relationships ,[object Object],[object Object]
Entity Relationships ,[object Object],[object Object],[object Object],[object Object]
Relationships One-To-One Each record in one table can have only one matching record in another, and each record in the other can have only one matching record in the first.  Not a common relationship. One-To-Many A record in one table can have many matching records in another, but a record in the other has only one matching record in first The most common form of relationship. Many-to-Many A record in one table can have many matching records in another, and a record in the other can have many matching records in the first
ER Diagrams ,[object Object],[object Object],[object Object]
ER Diagrams This is a one-to-many relationship - one subject can have many students This is a one-to-one relationship - one student can only have one student ID STUDENT SUBJECT STUDENT STUDENT ID
Creating ER Diagrams ,[object Object],[object Object],[object Object],[object Object]
Creating ER Diagrams Identify attributes Identify   entities Year Student ID Surname Student SubjectID Name Subject
[object Object],[object Object],Creating ER Diagrams Student Studies Subject
Stage 3 ,[object Object],[object Object],[object Object],[object Object],  Student Studies Subject 1 M
Stage 4 ,[object Object],Student Studies Subject 1 M 1 M 3 IT   3 12   Smith   3 1 English 2 11 Black   2 1 Maths   1 9   James   1 StudID   Subject   SubjectID   Year   Surname   StudID   STUDENT SUBJECT
Normalisation ,[object Object],[object Object]
Un-normalised Data Repeating groups and Null values A company manufactures and supplies a variety of products to retail suppliers .

Contenu connexe

Tendances

E-R diagram in Database
E-R diagram in DatabaseE-R diagram in Database
E-R diagram in Database
Fatiha Qureshi
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 

Tendances (20)

Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMS
 
Er diagram
Er diagramEr diagram
Er diagram
 
ER Diagram
ER DiagramER Diagram
ER Diagram
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
E-R diagram in Database
E-R diagram in DatabaseE-R diagram in Database
E-R diagram in Database
 
E R model
E R modelE R model
E R model
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Entity relationship diagram for dummies
Entity relationship diagram for dummiesEntity relationship diagram for dummies
Entity relationship diagram for dummies
 
Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Special lecture er diagram
Special lecture er diagramSpecial lecture er diagram
Special lecture er diagram
 
E r model
E r modelE r model
E r model
 
dbms er model
dbms er modeldbms er model
dbms er model
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 

Similaire à Relational Databases 2

Sql server ___________session2-data_modeling
Sql server  ___________session2-data_modelingSql server  ___________session2-data_modeling
Sql server ___________session2-data_modeling
Ehtisham Ali
 
introductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptxintroductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptx
KvkExambranch
 
Unit1 rdbms study_materials
Unit1 rdbms study_materialsUnit1 rdbms study_materials
Unit1 rdbms study_materials
gayaramesh
 

Similaire à Relational Databases 2 (20)

Sql server ___________session2-data_modeling
Sql server  ___________session2-data_modelingSql server  ___________session2-data_modeling
Sql server ___________session2-data_modeling
 
UNIT II DBMS.pptx
UNIT II DBMS.pptxUNIT II DBMS.pptx
UNIT II DBMS.pptx
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
 
Unit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptxUnit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptx
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
introductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptxintroductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptx
 
Download different material from slide share
Download different material from slide shareDownload different material from slide share
Download different material from slide share
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databases
 
DB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdfDB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdf
 
Unit1 rdbms study_materials
Unit1 rdbms study_materialsUnit1 rdbms study_materials
Unit1 rdbms study_materials
 
Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)
 
ERD - Entity Relationship Diagram
ERD - Entity Relationship DiagramERD - Entity Relationship Diagram
ERD - Entity Relationship Diagram
 
Er model
Er modelEr model
Er model
 
Lecture one db
Lecture one dbLecture one db
Lecture one db
 
ER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docxER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docx
 
Db lec 02_new
Db lec 02_newDb lec 02_new
Db lec 02_new
 

Plus de Jason Hando

Moodle news april_2010
Moodle news april_2010Moodle news april_2010
Moodle news april_2010
Jason Hando
 
Boston Joomla User Group Mtg June 09
Boston Joomla User Group Mtg June 09Boston Joomla User Group Mtg June 09
Boston Joomla User Group Mtg June 09
Jason Hando
 
User Interface Design
User Interface DesignUser Interface Design
User Interface Design
Jason Hando
 
Planning Multimedia
Planning MultimediaPlanning Multimedia
Planning Multimedia
Jason Hando
 
Multimedia Systems
Multimedia SystemsMultimedia Systems
Multimedia Systems
Jason Hando
 
Interactive Multimedia
Interactive MultimediaInteractive Multimedia
Interactive Multimedia
Jason Hando
 

Plus de Jason Hando (20)

Content Driven Learning Design by Jason Hando at ICTENSW AGM 2011
Content Driven Learning Design by Jason Hando at ICTENSW AGM 2011Content Driven Learning Design by Jason Hando at ICTENSW AGM 2011
Content Driven Learning Design by Jason Hando at ICTENSW AGM 2011
 
HTML5 and CSS3 for Teachers
HTML5 and CSS3 for TeachersHTML5 and CSS3 for Teachers
HTML5 and CSS3 for Teachers
 
Moodle as Medium - Sydney Moodle User Group April 2010
Moodle as Medium - Sydney Moodle User Group April 2010Moodle as Medium - Sydney Moodle User Group April 2010
Moodle as Medium - Sydney Moodle User Group April 2010
 
Moodle news april_2010
Moodle news april_2010Moodle news april_2010
Moodle news april_2010
 
Communications Systems
Communications SystemsCommunications Systems
Communications Systems
 
A Site Redesign - shock therapy for school webmasters
A  Site  Redesign - shock therapy for school webmastersA  Site  Redesign - shock therapy for school webmasters
A Site Redesign - shock therapy for school webmasters
 
Research In New Media Learning
Research In New Media LearningResearch In New Media Learning
Research In New Media Learning
 
Content Creation Workshop at NSWCEG 2009
Content Creation Workshop at NSWCEG 2009Content Creation Workshop at NSWCEG 2009
Content Creation Workshop at NSWCEG 2009
 
Boston Joomla User Group Mtg June 09
Boston Joomla User Group Mtg June 09Boston Joomla User Group Mtg June 09
Boston Joomla User Group Mtg June 09
 
Sydney Moodle User Group 11 - Cronulla High School
Sydney Moodle User Group 11 - Cronulla High SchoolSydney Moodle User Group 11 - Cronulla High School
Sydney Moodle User Group 11 - Cronulla High School
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Spreadhsheets 1
Spreadhsheets 1Spreadhsheets 1
Spreadhsheets 1
 
Project Work
Project WorkProject Work
Project Work
 
Databases
DatabasesDatabases
Databases
 
User Interface Design
User Interface DesignUser Interface Design
User Interface Design
 
Planning Multimedia
Planning MultimediaPlanning Multimedia
Planning Multimedia
 
Multimedia Systems
Multimedia SystemsMultimedia Systems
Multimedia Systems
 
Interactive Multimedia
Interactive MultimediaInteractive Multimedia
Interactive Multimedia
 
Spreadsheets 2
Spreadsheets 2Spreadsheets 2
Spreadsheets 2
 
Spreadhsheets 1
Spreadhsheets 1Spreadhsheets 1
Spreadhsheets 1
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Relational Databases 2

  • 2.
  • 3.
  • 4. Relationships One-To-One Each record in one table can have only one matching record in another, and each record in the other can have only one matching record in the first. Not a common relationship. One-To-Many A record in one table can have many matching records in another, but a record in the other has only one matching record in first The most common form of relationship. Many-to-Many A record in one table can have many matching records in another, and a record in the other can have many matching records in the first
  • 5.
  • 6. ER Diagrams This is a one-to-many relationship - one subject can have many students This is a one-to-one relationship - one student can only have one student ID STUDENT SUBJECT STUDENT STUDENT ID
  • 7.
  • 8. Creating ER Diagrams Identify attributes Identify entities Year Student ID Surname Student SubjectID Name Subject
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Un-normalised Data Repeating groups and Null values A company manufactures and supplies a variety of products to retail suppliers .