SlideShare a Scribd company logo
1 of 30
Database Structure
Basics
National Center for Immunization & Respiratory Diseases
Influenza Division
Pam Kennedy
Analyst, McKing Consulting
Regional Training Workshop on Influenza Data Management
Phnom Penh, Cambodia
July 27 – August 2, 2013
Course Objectives
• Designing a System
 Function
 Structure
 Data Types
 Data Relationships
• Data Entry
 Data Standards
 Forms
• Controls
• Control Validation
 Data Security
Section 1 Section 2
Questions
Designing a System
Function
• Function of a database is to facilitate the analysis of
large amounts of data quickly and efficiently
• Effective databases result from upfront planning
before the first data table is built
 Who has data /who is collecting data
 What data is being collected/needs to be collected
 Why is the data needed
 When is data collected
 Where is data collected
Designing a System
Structure
 How many data tables
are needed?
 How will data be entered?
 How will data be stored?
 What level of
data/database security is
needed?
 Who needs access to
the files?
 Will data be used in
calculations?
 Will regular reports be
needed?
 Is there a need to
export data?
Database structure
Designing a System
Structure
• Database structure
 Excel is a ‘flat’ file system
 A "flat file" is a plain text or mixed text which usually contains
one record per line
 There are no structural relationships between the records.
 ACCESS is a ‘relational’ system
 A relational database matches data by using common
characteristics found within the data set. The resulting groups
of data are organized and are much easier for many people
to understand.
http://en.wikipedia.org/wiki/Flat_file_database
http://en.wikipedia.org/wiki/Relational_database
Designing a System
Structure
• Excel and ACCESS both store data in a ‘column/row’
format
• Excel
 A ‘worksheet’ is the data storage tool
 Excel workbook is a collection of worksheets
 Excel worksheets are ‘flat files’
• ACCESS
 A ‘table’ is the data storage tool (equivalent to an Excel ‘worksheet’)
 Tables relate to other tables forming the basis for data analysis
 Tables group like elements together
 Patient information – name, address, phone, Date of Birth,
 Site information - site name, site contact info, type of site
Designing a System
Structure
• Worksheets/Tables store data within the database
 Excel Worksheet
 ACCESS Table
Record
Fields Field Value
Designing a System
Data Types
• There are different elements of data:
 Names, Dates, Cost information, Notes
• Data type is defined during database construction
• Excel and ACCESS both have default data types
 Excel – ‘general’
 ACCESS – ‘text’
• Data type determines how data can be used in
calculations
 Important during analysis or data summary
• Commonly used data types:
 Excel – general, date, currency
 ACCESS – text, number, date
Designing a System
Data Types
• Shared data types – Excel and ACCESS
 Text - for use storing names, short titles, country
 Number - for use storing numerical data
 Date/Time - for use storing dates and can capture time
 Currency - for use storing costs, price, etc.
• ACCESS Specific Data Types
 Memo - text field without character limit – for use storing notes
 In Excel – there is no character limit in any one cell
 Yes/No - creates check box field in a table (yes = box checked)
 AutoNumber – field that assigns an incremental number to each
record
Designing a System
Data Types
• Excel
Designing a System
Data Types
• ACCESS
Designing a System
Data Relationships
• ACCESS Specific
• What is a relational database ?
 System that links data by using common characteristics
 System that stores data in logical manner making analysis easier
 Provide more efficient means of dealing with duplicated data
• An ACCESS database is composed of the following
elements:
 Tables – Store data
 Queries – Aid in sorting, summing, calculating data
 Forms – Aid data input
Designing a System
Data Relationships
• Data relationships are critical
• Relationships should be set up as the database
is built
• Questions to consider:
 How do the fields in different tables relate?
 Is there a common factor in all the tables?
• This is the unique field that will apply across all data
 Consider data to be collected and how it will be used
 Consider data types – relationships link data of same type
Designing a System
Data Relationships
• Key types of relationships
 One to One – A unique record in Table 1 matches an exact
record in Table 2
 One to Many – A unique record in Table 1 matches to several
records in Table 2
SARI Data
Table 1
Lab Data
Table 2
Patient ID Date of
specimen
collection
Date of Visit Type of
sample
collected
Age Sex Results Patient ID
Example of Data Relationship
Example of Data Relationship
Data Entry
• Standards
• Forms
 Form functions
 Controls
• Drop down
• Check boxes
• Data Validation
 Queries
Data Security
Data Entry
Standards
• Why standardize?
 Create common understanding
 Ease comparison of data year to year
 Increase efficiency for analyzing
 Know where data is
 Know what people are asking for
 Everyone enters data in same way
 Ease comparison of data from group to group
 Example
 Dates
http://en.wikipedia.org/wiki/Football
Data Entry
Standards
• Dates
• Football
http://en.wikipedia.org/wiki/Football
12/2/2013 2/12/2013
Data Entry
Standards
• Standards
 Definition of data types during design phase ensures
standardization of data
 Numbers stored as numbers
 Currency stored in specified currency format
 Dates stored uniformly -
 ‘Yes’ stored as ‘Yes’ not ‘Y’
 ‘Controls’ can be used to assist in maintaining data
standards
 Limit data entry choices to defined terms
 Excel and ACCESS have similar ‘controls’ available
Data Entry
Forms
• Building a ‘data entry form’
 Identify data fields
 Determine structure
 Determine data field relationship (ACCESS)
 Determine data type for each data field
 Dates = date type
 Cost = currency
 Determine common standard responses
 “Yes” will by stored as ‘Yes’
 Choices will be ‘Yes’, ‘No’, ‘NA’
 Date format = DDMMYY or DDMMYYYY
• Most of these decisions should be made during
database structure design
Data Entry
Forms
• Excel
Data Entry
Forms
• ACCESS
Data Entry
Forms
• Queries
 Allow you to view, change, and analyze data in different
ways
 Several types :
 Select
 Parameter
 Crosstab
 Action
• A select query is the most common type of query
 Retrieve data from one or more tables
 Group records and calculate sums, counts, averages, and
other types of totals
Stefano TEMPIA
Microsoft Access Tutorial – Lecture 2
Data Entry
Forms
• Select query
Stefano TEMPIA
Microsoft Access Tutorial – Lecture 2
Data Entry
Data Security
• Why security
 Ensure data is maintained according to set standards
 Ensure access to data is controlled
 Ensure accuracy of data
• Security levels
 Excel
 Workbook
 Worksheet
 ACCESS
 Database
 Record
Designing a System
Database Basics
• Questions???
Designing a System
Database Basics
• Final Thoughts
 The database should meet your current needs and
any future needs you can anticipate
 Build a structure that works for you and provides what
you need
 Be prepared to change and adapt as your data needs
change
Keep it SIMPLE!
For more information please contact Centers for Disease Control and
Prevention
1600 Clifton Road NE, Atlanta, GA 30333
Telephone, 1-800-CDC-INFO (232-4636)/TTY: 1-888-232-6348
E-mail: cdcinfo@cdc.gov Web: www.cdc.gov
The findings and conclusions in this report are those of the authors and do not necessarily represent the official
position of the Centers for Disease Control and Prevention.
THANK YOU
National Center for Immunization & Respiratory Diseases
Influenza Division
Designing a System
Database Basics
• EXERCISE
Setting up tables using national surveillance forms
Setting up data entry controls
Entering data using controls

More Related Content

Similar to 3.1 Database structure - designing a system.ppt

Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...
Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...
Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...NASIG
 
Data Profiling, Data Catalogs and Metadata Harmonisation
Data Profiling, Data Catalogs and Metadata HarmonisationData Profiling, Data Catalogs and Metadata Harmonisation
Data Profiling, Data Catalogs and Metadata HarmonisationAlan McSweeney
 
Best practices data collection
Best practices data collectionBest practices data collection
Best practices data collectionSherry Lake
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data DictionaryKimberly Coquilla
 
Information Systems For Business and BeyondChapter 4Data a.docx
Information Systems For Business and BeyondChapter 4Data a.docxInformation Systems For Business and BeyondChapter 4Data a.docx
Information Systems For Business and BeyondChapter 4Data a.docxjaggernaoma
 
Behind The Scenes Databases And Information Systems 6
Behind The Scenes  Databases And Information Systems 6Behind The Scenes  Databases And Information Systems 6
Behind The Scenes Databases And Information Systems 6guest4a9cdb
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Dios Kurniawan
 
Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...
Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...
Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...DATAVERSITY
 
Creating Effective Data Visualizations in Excel 2016: Some Basics
Creating Effective Data Visualizations in Excel 2016:  Some BasicsCreating Effective Data Visualizations in Excel 2016:  Some Basics
Creating Effective Data Visualizations in Excel 2016: Some BasicsShalin Hai-Jew
 
Post-lock Data Flow: From CRF to FDA
Post-lock Data Flow: From CRF to FDAPost-lock Data Flow: From CRF to FDA
Post-lock Data Flow: From CRF to FDABrook White, PMP
 

Similar to 3.1 Database structure - designing a system.ppt (20)

Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...
Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...
Webinar 11-13-14 - DIY E-Resources Management: Basics of Information Architec...
 
Data Profiling, Data Catalogs and Metadata Harmonisation
Data Profiling, Data Catalogs and Metadata HarmonisationData Profiling, Data Catalogs and Metadata Harmonisation
Data Profiling, Data Catalogs and Metadata Harmonisation
 
Best practices data collection
Best practices data collectionBest practices data collection
Best practices data collection
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
 
Information Systems For Business and BeyondChapter 4Data a.docx
Information Systems For Business and BeyondChapter 4Data a.docxInformation Systems For Business and BeyondChapter 4Data a.docx
Information Systems For Business and BeyondChapter 4Data a.docx
 
Behind The Scenes Databases And Information Systems 6
Behind The Scenes  Databases And Information Systems 6Behind The Scenes  Databases And Information Systems 6
Behind The Scenes Databases And Information Systems 6
 
T-SQL
T-SQLT-SQL
T-SQL
 
Digital data
Digital dataDigital data
Digital data
 
Digital Types
Digital TypesDigital Types
Digital Types
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...
Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...
Webinar: Decoding the Mystery - How to Know if You Need a Data Catalog, a Dat...
 
6.2 software
6.2 software6.2 software
6.2 software
 
RowanDay4.pptx
RowanDay4.pptxRowanDay4.pptx
RowanDay4.pptx
 
Access
AccessAccess
Access
 
Creating Effective Data Visualizations in Excel 2016: Some Basics
Creating Effective Data Visualizations in Excel 2016:  Some BasicsCreating Effective Data Visualizations in Excel 2016:  Some Basics
Creating Effective Data Visualizations in Excel 2016: Some Basics
 
Chapter 11
Chapter 11Chapter 11
Chapter 11
 
Introduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal GulatiIntroduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal Gulati
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
Post-lock Data Flow: From CRF to FDA
Post-lock Data Flow: From CRF to FDAPost-lock Data Flow: From CRF to FDA
Post-lock Data Flow: From CRF to FDA
 
lecture 1.pdf
lecture 1.pdflecture 1.pdf
lecture 1.pdf
 

Recently uploaded

BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Onlineanilsa9823
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 

Recently uploaded (20)

BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 

3.1 Database structure - designing a system.ppt

  • 1. Database Structure Basics National Center for Immunization & Respiratory Diseases Influenza Division Pam Kennedy Analyst, McKing Consulting Regional Training Workshop on Influenza Data Management Phnom Penh, Cambodia July 27 – August 2, 2013
  • 2. Course Objectives • Designing a System  Function  Structure  Data Types  Data Relationships • Data Entry  Data Standards  Forms • Controls • Control Validation  Data Security Section 1 Section 2 Questions
  • 3. Designing a System Function • Function of a database is to facilitate the analysis of large amounts of data quickly and efficiently • Effective databases result from upfront planning before the first data table is built  Who has data /who is collecting data  What data is being collected/needs to be collected  Why is the data needed  When is data collected  Where is data collected
  • 4. Designing a System Structure  How many data tables are needed?  How will data be entered?  How will data be stored?  What level of data/database security is needed?  Who needs access to the files?  Will data be used in calculations?  Will regular reports be needed?  Is there a need to export data? Database structure
  • 5. Designing a System Structure • Database structure  Excel is a ‘flat’ file system  A "flat file" is a plain text or mixed text which usually contains one record per line  There are no structural relationships between the records.  ACCESS is a ‘relational’ system  A relational database matches data by using common characteristics found within the data set. The resulting groups of data are organized and are much easier for many people to understand. http://en.wikipedia.org/wiki/Flat_file_database http://en.wikipedia.org/wiki/Relational_database
  • 6. Designing a System Structure • Excel and ACCESS both store data in a ‘column/row’ format • Excel  A ‘worksheet’ is the data storage tool  Excel workbook is a collection of worksheets  Excel worksheets are ‘flat files’ • ACCESS  A ‘table’ is the data storage tool (equivalent to an Excel ‘worksheet’)  Tables relate to other tables forming the basis for data analysis  Tables group like elements together  Patient information – name, address, phone, Date of Birth,  Site information - site name, site contact info, type of site
  • 7. Designing a System Structure • Worksheets/Tables store data within the database  Excel Worksheet  ACCESS Table Record Fields Field Value
  • 8. Designing a System Data Types • There are different elements of data:  Names, Dates, Cost information, Notes • Data type is defined during database construction • Excel and ACCESS both have default data types  Excel – ‘general’  ACCESS – ‘text’ • Data type determines how data can be used in calculations  Important during analysis or data summary • Commonly used data types:  Excel – general, date, currency  ACCESS – text, number, date
  • 9. Designing a System Data Types • Shared data types – Excel and ACCESS  Text - for use storing names, short titles, country  Number - for use storing numerical data  Date/Time - for use storing dates and can capture time  Currency - for use storing costs, price, etc. • ACCESS Specific Data Types  Memo - text field without character limit – for use storing notes  In Excel – there is no character limit in any one cell  Yes/No - creates check box field in a table (yes = box checked)  AutoNumber – field that assigns an incremental number to each record
  • 10. Designing a System Data Types • Excel
  • 11. Designing a System Data Types • ACCESS
  • 12. Designing a System Data Relationships • ACCESS Specific • What is a relational database ?  System that links data by using common characteristics  System that stores data in logical manner making analysis easier  Provide more efficient means of dealing with duplicated data • An ACCESS database is composed of the following elements:  Tables – Store data  Queries – Aid in sorting, summing, calculating data  Forms – Aid data input
  • 13. Designing a System Data Relationships • Data relationships are critical • Relationships should be set up as the database is built • Questions to consider:  How do the fields in different tables relate?  Is there a common factor in all the tables? • This is the unique field that will apply across all data  Consider data to be collected and how it will be used  Consider data types – relationships link data of same type
  • 14. Designing a System Data Relationships • Key types of relationships  One to One – A unique record in Table 1 matches an exact record in Table 2  One to Many – A unique record in Table 1 matches to several records in Table 2 SARI Data Table 1 Lab Data Table 2 Patient ID Date of specimen collection Date of Visit Type of sample collected Age Sex Results Patient ID
  • 15. Example of Data Relationship
  • 16. Example of Data Relationship
  • 17. Data Entry • Standards • Forms  Form functions  Controls • Drop down • Check boxes • Data Validation  Queries Data Security
  • 18. Data Entry Standards • Why standardize?  Create common understanding  Ease comparison of data year to year  Increase efficiency for analyzing  Know where data is  Know what people are asking for  Everyone enters data in same way  Ease comparison of data from group to group  Example  Dates http://en.wikipedia.org/wiki/Football
  • 19. Data Entry Standards • Dates • Football http://en.wikipedia.org/wiki/Football 12/2/2013 2/12/2013
  • 20. Data Entry Standards • Standards  Definition of data types during design phase ensures standardization of data  Numbers stored as numbers  Currency stored in specified currency format  Dates stored uniformly -  ‘Yes’ stored as ‘Yes’ not ‘Y’  ‘Controls’ can be used to assist in maintaining data standards  Limit data entry choices to defined terms  Excel and ACCESS have similar ‘controls’ available
  • 21. Data Entry Forms • Building a ‘data entry form’  Identify data fields  Determine structure  Determine data field relationship (ACCESS)  Determine data type for each data field  Dates = date type  Cost = currency  Determine common standard responses  “Yes” will by stored as ‘Yes’  Choices will be ‘Yes’, ‘No’, ‘NA’  Date format = DDMMYY or DDMMYYYY • Most of these decisions should be made during database structure design
  • 24. Data Entry Forms • Queries  Allow you to view, change, and analyze data in different ways  Several types :  Select  Parameter  Crosstab  Action • A select query is the most common type of query  Retrieve data from one or more tables  Group records and calculate sums, counts, averages, and other types of totals Stefano TEMPIA Microsoft Access Tutorial – Lecture 2
  • 25. Data Entry Forms • Select query Stefano TEMPIA Microsoft Access Tutorial – Lecture 2
  • 26. Data Entry Data Security • Why security  Ensure data is maintained according to set standards  Ensure access to data is controlled  Ensure accuracy of data • Security levels  Excel  Workbook  Worksheet  ACCESS  Database  Record
  • 27. Designing a System Database Basics • Questions???
  • 28. Designing a System Database Basics • Final Thoughts  The database should meet your current needs and any future needs you can anticipate  Build a structure that works for you and provides what you need  Be prepared to change and adapt as your data needs change Keep it SIMPLE!
  • 29. For more information please contact Centers for Disease Control and Prevention 1600 Clifton Road NE, Atlanta, GA 30333 Telephone, 1-800-CDC-INFO (232-4636)/TTY: 1-888-232-6348 E-mail: cdcinfo@cdc.gov Web: www.cdc.gov The findings and conclusions in this report are those of the authors and do not necessarily represent the official position of the Centers for Disease Control and Prevention. THANK YOU National Center for Immunization & Respiratory Diseases Influenza Division
  • 30. Designing a System Database Basics • EXERCISE Setting up tables using national surveillance forms Setting up data entry controls Entering data using controls