SlideShare una empresa de Scribd logo
1 de 43
Relational databases
Introduction
Introduction
• Most common used data format next to
spreadsheets.
• Spreadsheets relatively easily
• Research projects mostly claim data to be
stored in relational database.
• Understanding a relational structure opens
the access to many data
Relational databases - Data mining
• Exploration of data
• Prerequisite: data should be available in a
minable format - database
• Database = electronic document storing data
– Non-relational: 1 bulk system with non-related
items (eg. Msexcel files, text-documents, non-
related-tables)
– Relational: all items (tables) are linked to each
other (see further)
Relational databases
Why using a database
• Relational database:
– All your data is stored in 1 file
• Easy to retrieve data
• Easy to backup
– Data and metadata stored together
• Data ...
• Metadata: data about the data (documentation)
– Many data-files contain undocumented values:
– Species A has an abundance of 17 ( meaning of value 17?)
Relational databases
Why using a database
• All data in a good relational designed database
is only stored once:
– Example: species list  typing errors
• Nudora thorakista
• Nudora thorrakista
• Nudora thorakhista
• Nudora thorakisa
– 1 species  species richness calculation: 4
– Solution: 1 table with each species 1 record and
use it as a reference
Why using a database
• Data is much more rigid ...
– More difficult to make errors
– E.g. Sorting in excell
Relational databases
Principle - Exercise
• A practical example to understand ...
– Make a list of 15 people you know
– Make a list of all genders
– Make a list of characters and indicate for each
character whether nice or not
– Make a list of countries
• Start coupling all your lists
• You made a relational database
Relational database - biology
Species
person
Places
Sample
Country
Density
Equipment
Species
person
Places
Sample
Country
Density
Equipment
Which person was present on samplings in sweden?
Species
person
Places
Sample
Country
Density
Equipment
Which species sampled with a core occur in densities higher than 40
Variable
Var_value
Taxonomy
Photo
Literature
...
...
...
...
Relational databases
Principles
• Think before you start ...
– Structure of a database is the key to a good
dataset
– Structure has to translate the whole concept
• One look at the structure (relational scheme) should
explain the database
Relational databases - components
• Tables
– Basic structures containing the data
– Structure of table important
– ID
• Relations
– Definition of how different tables are connected
and form a sense-full unit
• Queries
– Extractions of data from database
Table designs ...
• A table consists of a series of Columns ...
• Each record as such:
– Different fields
– Design of table must be done
before data is entered
– Each field: name, data type
– Each field can also by formatted  layout
Record
ColumnField
Table designs ...
• Field types:
– Numeric – integer/double
– Text
– Date/Time
– Memo
– Autonumber  ID
– Yes/No
Excercise on field types:
• 12
• 15 jan 1988
• hallo
• 12,456
• 12:56
• Azdazdazd azdda zda azdd dad zd dadazdzd
azdazddazdd azdazd azdazd dzdzdzzd ada zzd
azdaz dda azd da az d z azdzadazd a zd a azd
azd z dd da a z a z zd d ddaa zd
• 09:89
Special field in a table: key
• A key = a unique identifier for a record
– Example: pasport number:
• Number in a database which is unique and relates to all data
about you
– Each record in a table gets also a key
– This key is used to link tables to each other
– Example:
• Nudora sp1 – id: 123776
• Nudora sp2 – id: 34688
– Advantage: species name changes: linked taxa remain
linked
Linking tables through id’s
• Storing numbers is most effecient way to store
data:
• Nudora sp1 is found in the north sea with a
density of 32
• Species 123776 is found in station 2 (North
sea) with a density of 32
• Record in table density becomes:
123776 | 2 | 32
Setting up relations between tables
• Relations: links between tables
• Connecting tables through certain fields in a
rigid way to each other
• Advantage: database becomes a strong unity
• Types of relations:
– 1 to many
– Many to many ( = 2 times 1 to many)
Examples of relations
• Table places: field country (numeric)
• Table countries – list of countries,
each country has unique id
• Relation is made between:
– Field country in places
– Field id in country
• One to many relation: 1 record in table
country linked to multiple records in places
• No deleting of countries possible
Places
Country
Examples of relations
• Many to many
• Id of sample
• Id of species
• Table density: unique combination of sample,
species ...
Species
Sample
Density
Queries
• All data in database:
– Next step: get it out again
– Selections on 1 table: by using filters
– Selections on multiple tables: using queries
– Queries can be saved and reused
– Queries can be the basis for new queries
Sorting on tables
• Sorting
Filtering on tables
Making a simple selection Query
• Create ... Query in design view
• Switching between views:
Making a simple selection Query
• Select the tables and/or queries needed
Making a simple selection Query
• Select the fields needed for output/selection/sorting
Making a simple selection Query
• Select the fields needed for output/selection/sorting
Making a simple selection Query
• Select the fields needed for output/selection/sorting
Making a simple selection Query
• Select the fields needed for output/selection/sorting
Making a simple selection Query
• Set the criteria
Making a simple selection Query
• Select the values to out put and add sorting
options
Output the results
• Go to datasheet view
Making a simple selection Query
• Special options ...
Exporting data
• From msaccess it is possible to export to
different formats!
• Tables, queries, ...
• Exports can be used to do further data mining:
– Through MSExcell  making graphs
– To do statistical analysis
Exporting data
Step by step demonstration
• Open a database
• Different items in database
• Open tables, sorting, filtering
• Table design
• Relationships
• Queries
Query operators
= equals
> Larger than
< Smaller than
>= larger than or equals
Between ... And ...
Is null
Like ...
Not like ...
Query operators
Query operators
and both true
or at least 1 true
< Smaller than
>= larger than or equals
Between ... And ...
Is null
Like ...
Not like ... >"q*" and <"u*" VOORNAAM René, Robbie, Stefan, Stijn, Tim, Tristam
="r*" or "s*" VOORNAAM Robbie, Stefan, Stijn
Intermezzo ... Design a dataset
• Research project:
– You work with 3 persons on it
– You will sample 4 times on 3 locations
– You will measure 5 environmental characteristics
– You will identify all species
– You will count them
– Extra: you will measure each specimen
– Task: design on paper how your dataset will look
like

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
rdbms-notes
rdbms-notesrdbms-notes
rdbms-notes
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Indexing and Hashing
Indexing and HashingIndexing and Hashing
Indexing and Hashing
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Data base management system and Architecture ppt.
Data base management system and Architecture ppt.Data base management system and Architecture ppt.
Data base management system and Architecture ppt.
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Dbms
DbmsDbms
Dbms
 
Query processing
Query processingQuery processing
Query processing
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
SQL Views
SQL ViewsSQL Views
SQL Views
 
Relational model
Relational modelRelational model
Relational model
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 

Destacado

Access Ch4 Creating Reports And Forms (Jy)
Access Ch4   Creating Reports And Forms (Jy)Access Ch4   Creating Reports And Forms (Jy)
Access Ch4 Creating Reports And Forms (Jy)Chun Hoi Lam
 
MySQL Best Practices - OTN
MySQL Best Practices - OTNMySQL Best Practices - OTN
MySQL Best Practices - OTNRonald Bradford
 
Relational Databases
Relational DatabasesRelational Databases
Relational DatabasesJason Hando
 
Comparing free software for spatial DBMSs
Comparing free software for spatial DBMSsComparing free software for spatial DBMSs
Comparing free software for spatial DBMSsSmirnov Sergey
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database languageJafar Nesargi
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management SystemMian Abdul Raheem
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbmsMca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbmsRai University
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemVarun Arora
 
Introduction to Database Concepts
Introduction to Database ConceptsIntroduction to Database Concepts
Introduction to Database ConceptsRosalyn Lemieux
 
Open source software vs proprietary software
Open source software vs proprietary softwareOpen source software vs proprietary software
Open source software vs proprietary softwareLavan1997
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMSSarmad Ali
 

Destacado (20)

Bis Chapter3
Bis Chapter3Bis Chapter3
Bis Chapter3
 
Raj mysql
Raj mysqlRaj mysql
Raj mysql
 
Access Ch4 Creating Reports And Forms (Jy)
Access Ch4   Creating Reports And Forms (Jy)Access Ch4   Creating Reports And Forms (Jy)
Access Ch4 Creating Reports And Forms (Jy)
 
MySQL Best Practices - OTN
MySQL Best Practices - OTNMySQL Best Practices - OTN
MySQL Best Practices - OTN
 
Relational Databases
Relational DatabasesRelational Databases
Relational Databases
 
Comparing free software for spatial DBMSs
Comparing free software for spatial DBMSsComparing free software for spatial DBMSs
Comparing free software for spatial DBMSs
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
Ch1
Ch1Ch1
Ch1
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Chapter2
Chapter2Chapter2
Chapter2
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbmsMca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbms
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
MYSQL
MYSQLMYSQL
MYSQL
 
Introduction to Database Concepts
Introduction to Database ConceptsIntroduction to Database Concepts
Introduction to Database Concepts
 
Chapter25
Chapter25Chapter25
Chapter25
 
Open source software vs proprietary software
Open source software vs proprietary softwareOpen source software vs proprietary software
Open source software vs proprietary software
 
RDBMS
RDBMSRDBMS
RDBMS
 
Rdbms
RdbmsRdbms
Rdbms
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
DBMS an Example
DBMS an ExampleDBMS an Example
DBMS an Example
 

Similar a Relational databases

Data mining – introduction
Data mining – introductionData mining – introduction
Data mining – introductionFiddy Prasetiya
 
Presentation DBMS (1)
Presentation DBMS (1)Presentation DBMS (1)
Presentation DBMS (1)Ali Raza
 
Unit I Database concepts - RDBMS & ORACLE
Unit I  Database concepts - RDBMS & ORACLEUnit I  Database concepts - RDBMS & ORACLE
Unit I Database concepts - RDBMS & ORACLEDrkhanchanaR
 
1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.pptAshok280385
 
Database Indexes
Database IndexesDatabase Indexes
Database IndexesSperasoft
 
chapter09 -Programming Data Structures.pdf
chapter09 -Programming Data Structures.pdfchapter09 -Programming Data Structures.pdf
chapter09 -Programming Data Structures.pdfsatonaka3
 
Main MeMory Data Base
Main MeMory Data BaseMain MeMory Data Base
Main MeMory Data BaseSiva Rushi
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementAxmedMaxamuudYoonis
 
chapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfchapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfAxmedMaxamuud6
 
PPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptxPPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptxUbaidURRahman78
 
Reviewing basic concepts of relational database
Reviewing basic concepts of relational databaseReviewing basic concepts of relational database
Reviewing basic concepts of relational databaseHitesh Mohapatra
 
Data_base.pptx
Data_base.pptxData_base.pptx
Data_base.pptxMohit89650
 
chapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdfchapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdfsatonaka3
 
Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Muhammad Hammad Waseem
 

Similar a Relational databases (20)

Data mining – introduction
Data mining – introductionData mining – introduction
Data mining – introduction
 
Introduction to ms access database
Introduction to ms access databaseIntroduction to ms access database
Introduction to ms access database
 
Presentation DBMS (1)
Presentation DBMS (1)Presentation DBMS (1)
Presentation DBMS (1)
 
Unit I Database concepts - RDBMS & ORACLE
Unit I  Database concepts - RDBMS & ORACLEUnit I  Database concepts - RDBMS & ORACLE
Unit I Database concepts - RDBMS & ORACLE
 
demo2.ppt
demo2.pptdemo2.ppt
demo2.ppt
 
1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt
 
Database Indexes
Database IndexesDatabase Indexes
Database Indexes
 
chapter09 -Programming Data Structures.pdf
chapter09 -Programming Data Structures.pdfchapter09 -Programming Data Structures.pdf
chapter09 -Programming Data Structures.pdf
 
Main MeMory Data Base
Main MeMory Data BaseMain MeMory Data Base
Main MeMory Data Base
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project Management
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
chapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfchapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdf
 
PPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptxPPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptx
 
Reviewing basic concepts of relational database
Reviewing basic concepts of relational databaseReviewing basic concepts of relational database
Reviewing basic concepts of relational database
 
Db sys concept
Db sys conceptDb sys concept
Db sys concept
 
Data_base.pptx
Data_base.pptxData_base.pptx
Data_base.pptx
 
relational database
relational databaserelational database
relational database
 
chapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdfchapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdf
 
Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]
 
Database Management
Database ManagementDatabase Management
Database Management
 

Más de Fiddy Prasetiya

Water pollution in indonesia
Water pollution in indonesiaWater pollution in indonesia
Water pollution in indonesiaFiddy Prasetiya
 
Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...
Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...
Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...Fiddy Prasetiya
 
Diversity copepods in deep sea coral
Diversity copepods in deep sea coralDiversity copepods in deep sea coral
Diversity copepods in deep sea coralFiddy Prasetiya
 
Assessment sg detection by remote sensing
Assessment sg detection by remote sensingAssessment sg detection by remote sensing
Assessment sg detection by remote sensingFiddy Prasetiya
 
Lecture toxicity testing
Lecture   toxicity testingLecture   toxicity testing
Lecture toxicity testingFiddy Prasetiya
 
Oceangraphic data formats
Oceangraphic data formatsOceangraphic data formats
Oceangraphic data formatsFiddy Prasetiya
 
Data management principles
Data management principlesData management principles
Data management principlesFiddy Prasetiya
 
Water quality degradation & cyanobacterial blooms
Water quality degradation & cyanobacterial bloomsWater quality degradation & cyanobacterial blooms
Water quality degradation & cyanobacterial bloomsFiddy Prasetiya
 
Sea bird mortality at cabo san luca: presentation_fiddy
Sea bird mortality at cabo san luca: presentation_fiddySea bird mortality at cabo san luca: presentation_fiddy
Sea bird mortality at cabo san luca: presentation_fiddyFiddy Prasetiya
 
Primary production in Spuikom lagoon, Belgium
Primary production in Spuikom lagoon, BelgiumPrimary production in Spuikom lagoon, Belgium
Primary production in Spuikom lagoon, BelgiumFiddy Prasetiya
 
Study on the behavior of the heavy metals
Study on the behavior of the heavy metalsStudy on the behavior of the heavy metals
Study on the behavior of the heavy metalsFiddy Prasetiya
 
Benthic fauna of the inner part of ariake
Benthic fauna of the inner part of ariakeBenthic fauna of the inner part of ariake
Benthic fauna of the inner part of ariakeFiddy Prasetiya
 
Allelopatic haslea ostrearia on different species of diatoms
Allelopatic haslea ostrearia on different species of diatomsAllelopatic haslea ostrearia on different species of diatoms
Allelopatic haslea ostrearia on different species of diatomsFiddy Prasetiya
 
2 presentasi pemulihan lahan borobudur 01 juni 2011 ya
2 presentasi pemulihan lahan borobudur 01 juni 2011 ya2 presentasi pemulihan lahan borobudur 01 juni 2011 ya
2 presentasi pemulihan lahan borobudur 01 juni 2011 yaFiddy Prasetiya
 
2 proper 01 juni 2011 rt ok
2 proper 01 juni 2011 rt ok2 proper 01 juni 2011 rt ok
2 proper 01 juni 2011 rt okFiddy Prasetiya
 
2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt
2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt
2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.pptFiddy Prasetiya
 

Más de Fiddy Prasetiya (20)

Water pollution in indonesia
Water pollution in indonesiaWater pollution in indonesia
Water pollution in indonesia
 
Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...
Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...
Impact of aquaculture activity on phytoplankton diversity in djuanda reservoi...
 
Diversity copepods in deep sea coral
Diversity copepods in deep sea coralDiversity copepods in deep sea coral
Diversity copepods in deep sea coral
 
Assessment sg detection by remote sensing
Assessment sg detection by remote sensingAssessment sg detection by remote sensing
Assessment sg detection by remote sensing
 
Rq evaluation
Rq evaluationRq evaluation
Rq evaluation
 
Lecture toxicity testing
Lecture   toxicity testingLecture   toxicity testing
Lecture toxicity testing
 
Era2010
Era2010Era2010
Era2010
 
Oceangraphic data formats
Oceangraphic data formatsOceangraphic data formats
Oceangraphic data formats
 
Data policies
Data policiesData policies
Data policies
 
Data management principles
Data management principlesData management principles
Data management principles
 
Vliz poster fiddy
Vliz poster fiddyVliz poster fiddy
Vliz poster fiddy
 
Water quality degradation & cyanobacterial blooms
Water quality degradation & cyanobacterial bloomsWater quality degradation & cyanobacterial blooms
Water quality degradation & cyanobacterial blooms
 
Sea bird mortality at cabo san luca: presentation_fiddy
Sea bird mortality at cabo san luca: presentation_fiddySea bird mortality at cabo san luca: presentation_fiddy
Sea bird mortality at cabo san luca: presentation_fiddy
 
Primary production in Spuikom lagoon, Belgium
Primary production in Spuikom lagoon, BelgiumPrimary production in Spuikom lagoon, Belgium
Primary production in Spuikom lagoon, Belgium
 
Study on the behavior of the heavy metals
Study on the behavior of the heavy metalsStudy on the behavior of the heavy metals
Study on the behavior of the heavy metals
 
Benthic fauna of the inner part of ariake
Benthic fauna of the inner part of ariakeBenthic fauna of the inner part of ariake
Benthic fauna of the inner part of ariake
 
Allelopatic haslea ostrearia on different species of diatoms
Allelopatic haslea ostrearia on different species of diatomsAllelopatic haslea ostrearia on different species of diatoms
Allelopatic haslea ostrearia on different species of diatoms
 
2 presentasi pemulihan lahan borobudur 01 juni 2011 ya
2 presentasi pemulihan lahan borobudur 01 juni 2011 ya2 presentasi pemulihan lahan borobudur 01 juni 2011 ya
2 presentasi pemulihan lahan borobudur 01 juni 2011 ya
 
2 proper 01 juni 2011 rt ok
2 proper 01 juni 2011 rt ok2 proper 01 juni 2011 rt ok
2 proper 01 juni 2011 rt ok
 
2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt
2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt
2 kriteria plb3 agro & hasil 01 juni 2011 hh ok.ppt
 

Último

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Último (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

Relational databases

  • 2. Introduction • Most common used data format next to spreadsheets. • Spreadsheets relatively easily • Research projects mostly claim data to be stored in relational database. • Understanding a relational structure opens the access to many data
  • 3. Relational databases - Data mining • Exploration of data • Prerequisite: data should be available in a minable format - database • Database = electronic document storing data – Non-relational: 1 bulk system with non-related items (eg. Msexcel files, text-documents, non- related-tables) – Relational: all items (tables) are linked to each other (see further)
  • 4. Relational databases Why using a database • Relational database: – All your data is stored in 1 file • Easy to retrieve data • Easy to backup – Data and metadata stored together • Data ... • Metadata: data about the data (documentation) – Many data-files contain undocumented values: – Species A has an abundance of 17 ( meaning of value 17?)
  • 5. Relational databases Why using a database • All data in a good relational designed database is only stored once: – Example: species list  typing errors • Nudora thorakista • Nudora thorrakista • Nudora thorakhista • Nudora thorakisa – 1 species  species richness calculation: 4 – Solution: 1 table with each species 1 record and use it as a reference
  • 6. Why using a database • Data is much more rigid ... – More difficult to make errors – E.g. Sorting in excell
  • 7. Relational databases Principle - Exercise • A practical example to understand ... – Make a list of 15 people you know – Make a list of all genders – Make a list of characters and indicate for each character whether nice or not – Make a list of countries • Start coupling all your lists • You made a relational database
  • 8. Relational database - biology Species person Places Sample Country Density Equipment
  • 12. Relational databases Principles • Think before you start ... – Structure of a database is the key to a good dataset – Structure has to translate the whole concept • One look at the structure (relational scheme) should explain the database
  • 13. Relational databases - components • Tables – Basic structures containing the data – Structure of table important – ID • Relations – Definition of how different tables are connected and form a sense-full unit • Queries – Extractions of data from database
  • 14. Table designs ... • A table consists of a series of Columns ... • Each record as such: – Different fields – Design of table must be done before data is entered – Each field: name, data type – Each field can also by formatted  layout Record ColumnField
  • 15. Table designs ... • Field types: – Numeric – integer/double – Text – Date/Time – Memo – Autonumber  ID – Yes/No
  • 16. Excercise on field types: • 12 • 15 jan 1988 • hallo • 12,456 • 12:56 • Azdazdazd azdda zda azdd dad zd dadazdzd azdazddazdd azdazd azdazd dzdzdzzd ada zzd azdaz dda azd da az d z azdzadazd a zd a azd azd z dd da a z a z zd d ddaa zd • 09:89
  • 17. Special field in a table: key • A key = a unique identifier for a record – Example: pasport number: • Number in a database which is unique and relates to all data about you – Each record in a table gets also a key – This key is used to link tables to each other – Example: • Nudora sp1 – id: 123776 • Nudora sp2 – id: 34688 – Advantage: species name changes: linked taxa remain linked
  • 18. Linking tables through id’s • Storing numbers is most effecient way to store data: • Nudora sp1 is found in the north sea with a density of 32 • Species 123776 is found in station 2 (North sea) with a density of 32 • Record in table density becomes: 123776 | 2 | 32
  • 19. Setting up relations between tables • Relations: links between tables • Connecting tables through certain fields in a rigid way to each other • Advantage: database becomes a strong unity • Types of relations: – 1 to many – Many to many ( = 2 times 1 to many)
  • 20. Examples of relations • Table places: field country (numeric) • Table countries – list of countries, each country has unique id • Relation is made between: – Field country in places – Field id in country • One to many relation: 1 record in table country linked to multiple records in places • No deleting of countries possible Places Country
  • 21. Examples of relations • Many to many • Id of sample • Id of species • Table density: unique combination of sample, species ... Species Sample Density
  • 22.
  • 23. Queries • All data in database: – Next step: get it out again – Selections on 1 table: by using filters – Selections on multiple tables: using queries – Queries can be saved and reused – Queries can be the basis for new queries
  • 26. Making a simple selection Query • Create ... Query in design view • Switching between views:
  • 27. Making a simple selection Query • Select the tables and/or queries needed
  • 28. Making a simple selection Query • Select the fields needed for output/selection/sorting
  • 29. Making a simple selection Query • Select the fields needed for output/selection/sorting
  • 30. Making a simple selection Query • Select the fields needed for output/selection/sorting
  • 31. Making a simple selection Query • Select the fields needed for output/selection/sorting
  • 32. Making a simple selection Query • Set the criteria
  • 33. Making a simple selection Query • Select the values to out put and add sorting options
  • 34. Output the results • Go to datasheet view
  • 35. Making a simple selection Query • Special options ...
  • 36. Exporting data • From msaccess it is possible to export to different formats! • Tables, queries, ... • Exports can be used to do further data mining: – Through MSExcell  making graphs – To do statistical analysis
  • 38.
  • 39. Step by step demonstration • Open a database • Different items in database • Open tables, sorting, filtering • Table design • Relationships • Queries
  • 40. Query operators = equals > Larger than < Smaller than >= larger than or equals Between ... And ... Is null Like ... Not like ...
  • 42. Query operators and both true or at least 1 true < Smaller than >= larger than or equals Between ... And ... Is null Like ... Not like ... >"q*" and <"u*" VOORNAAM René, Robbie, Stefan, Stijn, Tim, Tristam ="r*" or "s*" VOORNAAM Robbie, Stefan, Stijn
  • 43. Intermezzo ... Design a dataset • Research project: – You work with 3 persons on it – You will sample 4 times on 3 locations – You will measure 5 environmental characteristics – You will identify all species – You will count them – Extra: you will measure each specimen – Task: design on paper how your dataset will look like