SlideShare a Scribd company logo
1 of 17
Database Structure
 A database is a system for organising and storing data
 Databases are made up of one or more files
 Files are a collection of records, and records are made up of fields.
Database Structure
 A database is a system for organising and storing data
 Databases are made up of one or more files
 Files are a collection of records, and records are made up of fields.
Database Structure
 Each column represents a field
 Each row represents a record
Flat File Database
 A flat-file database is a database structure which consists of only a single
table.
 While this is a simple way to store files, a flat-file system becomes
increasingly inefficient as more data is added.
Database Anomalies
Whilst the flat-file database might seem to be a good solution to begin with,
there are actually a number of problems which are linked with this approach.
These are known as anomalies.
Database Anomalies
Anomaly 1:
Mr O'Hara is a teacher in the English department and he teaches in English
Room 4. Add Mr O'Hara's details to the database.
Database Anomalies
Anomaly 1:
Mr O'Hara is a teacher in the English department and he teaches in English
Room 4. Add Mr O'Hara's details to the database.
This is known as an insertion anomaly.
Database Anomalies
Anomaly 2:
The art department is reorganising rooms and Miss Dewar is moving from Art
Room 3 to Art Room 1. Update the database to show this.
Database Anomalies
Anomaly 2:
The art department is reorganising rooms and Miss Dewar is moving from Art
Room 3 to Art Room 1. Update the database to show this.
This is known as an update anomaly.
Database Anomalies
Anomaly 3:
John McGinn has left school. His record should be deleted from the database.
Database Anomalies
Anomaly 3:
John McGinn has left school. His record should be deleted from the database.
This is known as a deletion anomaly.
Relational Databases
A better approach to database design is known as the Relational Database
Model. In the relational model, the data is stored in multiple tables or relations.
However, in this example we have lost the link between pupil and their tutor
teacher.
Relational Databases
We create linked tables by introducing keys.
Relational Databases
We create linked tables by introducing keys.
Atomic Data
Data items are said to be atomic if they cannot be broken down into smaller
data items.
In this example, Forename and Surname fields are atomic because they
cannot be broken down into smaller data items:
Atomic Data
Data items are said to be atomic if they cannot be broken down into smaller
data items.
In this example, the Pupil Name field is not atomic because it could be further
broken down into fields - Forename and Surname:

More Related Content

What's hot

Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
emailharmeet
 

What's hot (20)

11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
Data Warehousing and Data Mining
Data Warehousing and Data MiningData Warehousing and Data Mining
Data Warehousing and Data Mining
 
Database Management Systems - Management Information System
Database Management Systems - Management Information SystemDatabase Management Systems - Management Information System
Database Management Systems - Management Information System
 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of Database
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Metadata ppt
Metadata pptMetadata ppt
Metadata ppt
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Advantages of DBMS
Advantages of DBMSAdvantages of DBMS
Advantages of DBMS
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databases
 
Database design process
Database design processDatabase design process
Database design process
 
History of Database
History  of DatabaseHistory  of Database
History of Database
 

Viewers also liked

Viewers also liked (20)

Audio Compression
Audio CompressionAudio Compression
Audio Compression
 
N5 Computing Science HTML
N5 Computing Science HTMLN5 Computing Science HTML
N5 Computing Science HTML
 
Scripting Languages
Scripting LanguagesScripting Languages
Scripting Languages
 
JavaScript
JavaScriptJavaScript
JavaScript
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Database Validation
Database ValidationDatabase Validation
Database Validation
 
Backing Storage
Backing StorageBacking Storage
Backing Storage
 
ISDD Hacking and Viruses
ISDD Hacking and VirusesISDD Hacking and Viruses
ISDD Hacking and Viruses
 
Entities and attributes
Entities and attributesEntities and attributes
Entities and attributes
 
Database - reports, forms, calculations
Database - reports, forms, calculationsDatabase - reports, forms, calculations
Database - reports, forms, calculations
 
ISDD Environmental Impact
ISDD Environmental ImpactISDD Environmental Impact
ISDD Environmental Impact
 
ISDD Standard File Formats
ISDD Standard File FormatsISDD Standard File Formats
ISDD Standard File Formats
 
Sound & Video File Sizes
Sound & Video File SizesSound & Video File Sizes
Sound & Video File Sizes
 
ISDD Cloud and Internet Services
ISDD Cloud and Internet ServicesISDD Cloud and Internet Services
ISDD Cloud and Internet Services
 
Web Pages
Web PagesWeb Pages
Web Pages
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
ISDD Networking & Connectivity
ISDD Networking & ConnectivityISDD Networking & Connectivity
ISDD Networking & Connectivity
 
ISDD Security Precautions
ISDD Security PrecautionsISDD Security Precautions
ISDD Security Precautions
 
Technical Implementation: Software
Technical Implementation: SoftwareTechnical Implementation: Software
Technical Implementation: Software
 
ISDD Media Types - File Compression
ISDD Media Types - File CompressionISDD Media Types - File Compression
ISDD Media Types - File Compression
 

Similar to Database structure

Similar to Database structure (20)

ISDD Database Structure N5
ISDD Database Structure N5ISDD Database Structure N5
ISDD Database Structure N5
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
 
introductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptxintroductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptx
 
DB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdfDB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdf
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
Database - R.D.Sivakumar
Database - R.D.SivakumarDatabase - R.D.Sivakumar
Database - R.D.Sivakumar
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
Building a-database
Building a-databaseBuilding a-database
Building a-database
 
DBMS (UNIT 2)
DBMS (UNIT 2)DBMS (UNIT 2)
DBMS (UNIT 2)
 
Manjeet Singh.pptx
Manjeet Singh.pptxManjeet Singh.pptx
Manjeet Singh.pptx
 
Module03
Module03Module03
Module03
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
 
Learn Database Design with MySQL - Chapter 1 - What is a database
Learn Database Design with MySQL - Chapter 1 -   What is a databaseLearn Database Design with MySQL - Chapter 1 -   What is a database
Learn Database Design with MySQL - Chapter 1 - What is a database
 
DBMS Lecture1.ppt
DBMS Lecture1.pptDBMS Lecture1.ppt
DBMS Lecture1.ppt
 
Presentation DBMS (1)
Presentation DBMS (1)Presentation DBMS (1)
Presentation DBMS (1)
 

More from Forrester High School

More from Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

Database structure

  • 1.
  • 2. Database Structure  A database is a system for organising and storing data  Databases are made up of one or more files  Files are a collection of records, and records are made up of fields.
  • 3. Database Structure  A database is a system for organising and storing data  Databases are made up of one or more files  Files are a collection of records, and records are made up of fields.
  • 4. Database Structure  Each column represents a field  Each row represents a record
  • 5. Flat File Database  A flat-file database is a database structure which consists of only a single table.  While this is a simple way to store files, a flat-file system becomes increasingly inefficient as more data is added.
  • 6. Database Anomalies Whilst the flat-file database might seem to be a good solution to begin with, there are actually a number of problems which are linked with this approach. These are known as anomalies.
  • 7. Database Anomalies Anomaly 1: Mr O'Hara is a teacher in the English department and he teaches in English Room 4. Add Mr O'Hara's details to the database.
  • 8. Database Anomalies Anomaly 1: Mr O'Hara is a teacher in the English department and he teaches in English Room 4. Add Mr O'Hara's details to the database. This is known as an insertion anomaly.
  • 9. Database Anomalies Anomaly 2: The art department is reorganising rooms and Miss Dewar is moving from Art Room 3 to Art Room 1. Update the database to show this.
  • 10. Database Anomalies Anomaly 2: The art department is reorganising rooms and Miss Dewar is moving from Art Room 3 to Art Room 1. Update the database to show this. This is known as an update anomaly.
  • 11. Database Anomalies Anomaly 3: John McGinn has left school. His record should be deleted from the database.
  • 12. Database Anomalies Anomaly 3: John McGinn has left school. His record should be deleted from the database. This is known as a deletion anomaly.
  • 13. Relational Databases A better approach to database design is known as the Relational Database Model. In the relational model, the data is stored in multiple tables or relations. However, in this example we have lost the link between pupil and their tutor teacher.
  • 14. Relational Databases We create linked tables by introducing keys.
  • 15. Relational Databases We create linked tables by introducing keys.
  • 16. Atomic Data Data items are said to be atomic if they cannot be broken down into smaller data items. In this example, Forename and Surname fields are atomic because they cannot be broken down into smaller data items:
  • 17. Atomic Data Data items are said to be atomic if they cannot be broken down into smaller data items. In this example, the Pupil Name field is not atomic because it could be further broken down into fields - Forename and Surname: