SlideShare une entreprise Scribd logo
1  sur  21
DATABASES
DATABASE Definitions A database is a structured collection of similar information which you can search through. File  A collection of structured data on a  particular topic. A file is made up of  records. Record Information held about one person or  thing.  A record is made up of fields. Field A single item of information.
TYPES OF FIELDS Text holds letters, numbers and symbols Numeric hold numbers for calculations Date holds a date Time holds a time Graphic holds a picture Calculated field performs a calculation on the  contents of one or more fields.
Searching The search facility allows you to look for information in the database. A search may be: Simple Look for records with a match on one field  ( They have one thing in common.)  eg Hair = “Brown” Complex Look for records with a match on more  than one item in one or more fields. Eg Hair = “Brown” AND Eyes = “Blue”
Comparison operators < Less than < = Less than or equal to = Equal to > = Equal to or greater than > Greater than < > Not equal to Contains Eg.  To find all records for 1st to 3rd year in a school database you could search for: Year <= 3rd
Year = ‘3rd’  OR   Year = ‘4th’  AND   Subject = ‘Computing’ Eg  To search a school database for all Standard Grade Computing pupils you could search for: Credit In a complex search we need to link the searches together using one of the following operators: AND Both items required in each record OR One item required in each record
Sorting Sorting allows you to arrange the records in a database in  alphabetic  or numeric order. This can be ascending  (A to Z or 1 to 9) or descending (Z to A or 9 to 1) Sorting on More than one field When two items are the same in one field they can be  separated using a second field for sorting.  For example, it is common to sort lists of names first by  surname and then by first name
Example: Field 1: Date of birth Field 2: Today's date Field 3: Age  Field 3 is a calculated field and contains the  formula: Today’s date - Date of birth Calculated Field (Also called a computed field).  A calculated field allows  you to carry out a calculation on another field or fields and  return the answer in the calculated field.  (similar to  formulae in a spreadsheet). Other examples of calculated  fields often used in reports include totals and sub-totals.
Credit Reports Any information on your database that you print out is a  report. You would normally do a search and / or a sort,  and then select which fields you want to print.
Size of a field This is the total number of characters, including  spaces,  needed to hold the information in a field. Eg.  A Field containing the data ‘ Computing Department’   Would have a field size of 20 Examples of databases include:- Telephone directory Police National Computer A personal Christmas card list
Credit Keywords This is the text used to search a file for a particular entry. Key Field This is a field which contains unique information for each record. That is, each record has a different number or text in the key field. Doing a search for an item on a unique field will only give one record. Example: SQA has a database of all pupils attempting Standard Grade Exam. Each pupil has a unique candidate number because there will be more than one pupil with the same name and date of birth.
Credit Data Protection Definitions: Data User   is a person who holds and uses personal  data about others or controls the use of it. Data Subject   is a person about whom personal data is  stored by a data user.
The Data subjects have the following rights: • to know if data is held about them on a computer • to see a copy of this personal data • to make corrections if necessary • to ask for compensation if data is inaccurate or  access given to an unauthorised person.
Under the Data Protection Act (1984) data users must: • get and process the information fairly and  lawfully • register  what reason they hold it for • hold only  relevant  information  • hold only  accurate and up to date  information • not keep information any longer than needed • give  individuals access  to information about  themselves and, where necessary, correct or  remove wrong information • take appropriate security measures .
Exceptions to the Act There are exceptions to people’s right to see data held about them. The public are denied access to data held by the Police or security forces.
Computer Misuse Act  – It is criminal offence to gain unauthorised access to a computer system, including  Hacking  and writing and spreading  Viruses. Copyright Designs and Patents Act –  It is illegal to copy Software.  This Act protects copyright owners from having their work copied by others without payment. Freedom of Information ( Scotland ) Act 2002-  This came into force on January 2005 and enables any person to obtain information from Scottish public authorities. Other important Acts you need to know:
Misuse of Computers The Computer Misuse Act is intended to protect all types  of information (not just personal) stored on computer  systems. Hacking This is the act of trying to gain unauthorised entry to  files. This is done by using a wide area network and  passwords.
Viruses Some people enjoy writing and distributing computer  viruses which destroy data and cause computers to crash  or take up processor time in meaningless calculations.  Viruses are usually spread by copying files (from  unofficial sources). To prevent viruses spreading: • Don’t share disks. • Don’t copy software. • Use an anti-virus program to check disks  regularly.
A database is the second general purpose package (along with a word processor) required to produce a mail merged document.  Having studied both these packages, we are now in a better position to understand how a mail merge works. Mail merging is the process of combining details from a database with a standard letter in a word processing package, to produce personalised letters - as many letters as there are records in the database. Mail Merge
Database Word Processed Standard Letter Name Flossie Year  S1 Name Josie Year S5 Name Phyllis Year S4 Dear Parent, I am pleased to inform you that your child  ___________ has won a prize for the best Computing student in __________ Head Teacher. Having created your database and your standard letter, you are ready to combine the two, filling the gaps in the standard letter with information from the database.
Word Processed Standard Letter with database fields inserted ready for mail merge. The database field names are used to mark where in the standard letter information from the database will be inserted.  These are shown in brackets like so  << >>  to mark them. Dear Parent, I am pleased to inform you that your child  <<Name>>  has won a prize for the best Computing student in  <<Year>> Head Teacher. When the mail merge is performed the field names in brackets are replaced with the appropriate fields from the database.  This is done for every record in the database.

Contenu connexe

Tendances

Unit 3 - Storage & Retrieval of Information
Unit 3 - Storage & Retrieval of InformationUnit 3 - Storage & Retrieval of Information
Unit 3 - Storage & Retrieval of InformationRobbieA
 
Scanning &amp; Password Protecting Docs
Scanning &amp; Password Protecting DocsScanning &amp; Password Protecting Docs
Scanning &amp; Password Protecting DocsKelly McDavid
 
Coreference Extraction from Identric’s Documents - Solution of Datathon 2018
Coreference Extraction from Identric’s Documents - Solution of Datathon 2018Coreference Extraction from Identric’s Documents - Solution of Datathon 2018
Coreference Extraction from Identric’s Documents - Solution of Datathon 2018Data Science Society
 
13 wordprocessing ml subject - mail merge
13   wordprocessing ml subject - mail merge13   wordprocessing ml subject - mail merge
13 wordprocessing ml subject - mail mergeShawn Villaron
 
Data Types And Field Properties
Data Types And Field PropertiesData Types And Field Properties
Data Types And Field Propertieslindy23
 
Database concepts presentation version 2010 revised
Database concepts presentation version 2010 revisedDatabase concepts presentation version 2010 revised
Database concepts presentation version 2010 revisedmnodalo
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemMuhd Dembo
 
Database Fundamentals
Database FundamentalsDatabase Fundamentals
Database Fundamentalslindy23
 
Using Regular Expressions in Document Management Data Capture and Indexing
Using Regular Expressions in Document Management Data Capture and IndexingUsing Regular Expressions in Document Management Data Capture and Indexing
Using Regular Expressions in Document Management Data Capture and IndexingSandy Schiele
 
India build problem
India build problemIndia build problem
India build problemICE CUBE
 
Dbms quries
Dbms quriesDbms quries
Dbms quriesAns Ali
 
Starting ms access 2010
Starting ms access 2010Starting ms access 2010
Starting ms access 2010Bryan Corpuz
 

Tendances (20)

Introduction - Database (MS Access)
Introduction - Database (MS Access)Introduction - Database (MS Access)
Introduction - Database (MS Access)
 
Unit 3 - Storage & Retrieval of Information
Unit 3 - Storage & Retrieval of InformationUnit 3 - Storage & Retrieval of Information
Unit 3 - Storage & Retrieval of Information
 
Scanning &amp; Password Protecting Docs
Scanning &amp; Password Protecting DocsScanning &amp; Password Protecting Docs
Scanning &amp; Password Protecting Docs
 
Coreference Extraction from Identric’s Documents - Solution of Datathon 2018
Coreference Extraction from Identric’s Documents - Solution of Datathon 2018Coreference Extraction from Identric’s Documents - Solution of Datathon 2018
Coreference Extraction from Identric’s Documents - Solution of Datathon 2018
 
13 wordprocessing ml subject - mail merge
13   wordprocessing ml subject - mail merge13   wordprocessing ml subject - mail merge
13 wordprocessing ml subject - mail merge
 
ITGS - Data And Databases
ITGS - Data And DatabasesITGS - Data And Databases
ITGS - Data And Databases
 
Data Types And Field Properties
Data Types And Field PropertiesData Types And Field Properties
Data Types And Field Properties
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Database concepts presentation version 2010 revised
Database concepts presentation version 2010 revisedDatabase concepts presentation version 2010 revised
Database concepts presentation version 2010 revised
 
Database
Database Database
Database
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Database
DatabaseDatabase
Database
 
Databases By ZAK
Databases By ZAKDatabases By ZAK
Databases By ZAK
 
Database Fundamentals
Database FundamentalsDatabase Fundamentals
Database Fundamentals
 
Using Regular Expressions in Document Management Data Capture and Indexing
Using Regular Expressions in Document Management Data Capture and IndexingUsing Regular Expressions in Document Management Data Capture and Indexing
Using Regular Expressions in Document Management Data Capture and Indexing
 
India build problem
India build problemIndia build problem
India build problem
 
Dbms quries
Dbms quriesDbms quries
Dbms quries
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Folder Watching For Automated Document Capture, Batch Scanning
Folder Watching For Automated Document Capture, Batch ScanningFolder Watching For Automated Document Capture, Batch Scanning
Folder Watching For Automated Document Capture, Batch Scanning
 
Starting ms access 2010
Starting ms access 2010Starting ms access 2010
Starting ms access 2010
 

Similaire à Databases

Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnerswellingtonoboh
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4Amit Chandra
 
Data science.chapter-1,2,3
Data science.chapter-1,2,3Data science.chapter-1,2,3
Data science.chapter-1,2,3varshakumar21
 
Information Retrieval-1
Information Retrieval-1Information Retrieval-1
Information Retrieval-1Jeet Das
 
Ch # 09 database management system
Ch # 09 database management systemCh # 09 database management system
Ch # 09 database management systemMuhammadRobeel3
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentalscrystalpullen
 
Advantages And Uses Of SQL
Advantages And Uses Of SQLAdvantages And Uses Of SQL
Advantages And Uses Of SQLSandra Arveseth
 
Data driven enterprise off your beat - denver news train - april 11-12, 2019
Data driven enterprise off your beat - denver news train - april 11-12, 2019Data driven enterprise off your beat - denver news train - april 11-12, 2019
Data driven enterprise off your beat - denver news train - april 11-12, 2019News Leaders Association's NewsTrain
 
Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...
Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...
Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...News Leaders Association's NewsTrain
 
1- Introduction.pptx.pdf
1- Introduction.pptx.pdf1- Introduction.pptx.pdf
1- Introduction.pptx.pdfgm6523
 
Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17
Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17
Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17News Leaders Association's NewsTrain
 
Unit 1-Data Science Process Overview.pptx
Unit 1-Data Science Process Overview.pptxUnit 1-Data Science Process Overview.pptx
Unit 1-Data Science Process Overview.pptxAnusuya123
 

Similaire à Databases (20)

Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learners
 
Data science unit1
Data science unit1Data science unit1
Data science unit1
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Data science.chapter-1,2,3
Data science.chapter-1,2,3Data science.chapter-1,2,3
Data science.chapter-1,2,3
 
INT 1010 07-3.pdf
INT 1010 07-3.pdfINT 1010 07-3.pdf
INT 1010 07-3.pdf
 
Data processing
Data processingData processing
Data processing
 
W 8 introduction to database
W 8  introduction to databaseW 8  introduction to database
W 8 introduction to database
 
Access 2010
Access 2010Access 2010
Access 2010
 
Information Retrieval-1
Information Retrieval-1Information Retrieval-1
Information Retrieval-1
 
Ch # 09 database management system
Ch # 09 database management systemCh # 09 database management system
Ch # 09 database management system
 
Database
DatabaseDatabase
Database
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Database Project
Database ProjectDatabase Project
Database Project
 
Advantages And Uses Of SQL
Advantages And Uses Of SQLAdvantages And Uses Of SQL
Advantages And Uses Of SQL
 
Data driven enterprise off your beat - denver news train - april 11-12, 2019
Data driven enterprise off your beat - denver news train - april 11-12, 2019Data driven enterprise off your beat - denver news train - april 11-12, 2019
Data driven enterprise off your beat - denver news train - april 11-12, 2019
 
Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...
Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...
Data-driven enterprise off your beat - Sarah Cohen - Phoenix NewsTrain - Apri...
 
1- Introduction.pptx.pdf
1- Introduction.pptx.pdf1- Introduction.pptx.pdf
1- Introduction.pptx.pdf
 
Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17
Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17
Data-driven enterprise off your beat - Steve Doig - Seattle NewsTrain - 11.11.17
 
Unit 1-Data Science Process Overview.pptx
Unit 1-Data Science Process Overview.pptxUnit 1-Data Science Process Overview.pptx
Unit 1-Data Science Process Overview.pptx
 
Data base
Data baseData base
Data base
 

Dernier

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 

Dernier (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 

Databases

  • 2. DATABASE Definitions A database is a structured collection of similar information which you can search through. File A collection of structured data on a particular topic. A file is made up of records. Record Information held about one person or thing. A record is made up of fields. Field A single item of information.
  • 3. TYPES OF FIELDS Text holds letters, numbers and symbols Numeric hold numbers for calculations Date holds a date Time holds a time Graphic holds a picture Calculated field performs a calculation on the contents of one or more fields.
  • 4. Searching The search facility allows you to look for information in the database. A search may be: Simple Look for records with a match on one field ( They have one thing in common.) eg Hair = “Brown” Complex Look for records with a match on more than one item in one or more fields. Eg Hair = “Brown” AND Eyes = “Blue”
  • 5. Comparison operators < Less than < = Less than or equal to = Equal to > = Equal to or greater than > Greater than < > Not equal to Contains Eg. To find all records for 1st to 3rd year in a school database you could search for: Year <= 3rd
  • 6. Year = ‘3rd’ OR Year = ‘4th’ AND Subject = ‘Computing’ Eg To search a school database for all Standard Grade Computing pupils you could search for: Credit In a complex search we need to link the searches together using one of the following operators: AND Both items required in each record OR One item required in each record
  • 7. Sorting Sorting allows you to arrange the records in a database in alphabetic or numeric order. This can be ascending (A to Z or 1 to 9) or descending (Z to A or 9 to 1) Sorting on More than one field When two items are the same in one field they can be separated using a second field for sorting. For example, it is common to sort lists of names first by surname and then by first name
  • 8. Example: Field 1: Date of birth Field 2: Today's date Field 3: Age Field 3 is a calculated field and contains the formula: Today’s date - Date of birth Calculated Field (Also called a computed field). A calculated field allows you to carry out a calculation on another field or fields and return the answer in the calculated field. (similar to formulae in a spreadsheet). Other examples of calculated fields often used in reports include totals and sub-totals.
  • 9. Credit Reports Any information on your database that you print out is a report. You would normally do a search and / or a sort, and then select which fields you want to print.
  • 10. Size of a field This is the total number of characters, including spaces, needed to hold the information in a field. Eg. A Field containing the data ‘ Computing Department’ Would have a field size of 20 Examples of databases include:- Telephone directory Police National Computer A personal Christmas card list
  • 11. Credit Keywords This is the text used to search a file for a particular entry. Key Field This is a field which contains unique information for each record. That is, each record has a different number or text in the key field. Doing a search for an item on a unique field will only give one record. Example: SQA has a database of all pupils attempting Standard Grade Exam. Each pupil has a unique candidate number because there will be more than one pupil with the same name and date of birth.
  • 12. Credit Data Protection Definitions: Data User is a person who holds and uses personal data about others or controls the use of it. Data Subject is a person about whom personal data is stored by a data user.
  • 13. The Data subjects have the following rights: • to know if data is held about them on a computer • to see a copy of this personal data • to make corrections if necessary • to ask for compensation if data is inaccurate or access given to an unauthorised person.
  • 14. Under the Data Protection Act (1984) data users must: • get and process the information fairly and lawfully • register what reason they hold it for • hold only relevant information • hold only accurate and up to date information • not keep information any longer than needed • give individuals access to information about themselves and, where necessary, correct or remove wrong information • take appropriate security measures .
  • 15. Exceptions to the Act There are exceptions to people’s right to see data held about them. The public are denied access to data held by the Police or security forces.
  • 16. Computer Misuse Act – It is criminal offence to gain unauthorised access to a computer system, including Hacking and writing and spreading Viruses. Copyright Designs and Patents Act – It is illegal to copy Software. This Act protects copyright owners from having their work copied by others without payment. Freedom of Information ( Scotland ) Act 2002- This came into force on January 2005 and enables any person to obtain information from Scottish public authorities. Other important Acts you need to know:
  • 17. Misuse of Computers The Computer Misuse Act is intended to protect all types of information (not just personal) stored on computer systems. Hacking This is the act of trying to gain unauthorised entry to files. This is done by using a wide area network and passwords.
  • 18. Viruses Some people enjoy writing and distributing computer viruses which destroy data and cause computers to crash or take up processor time in meaningless calculations. Viruses are usually spread by copying files (from unofficial sources). To prevent viruses spreading: • Don’t share disks. • Don’t copy software. • Use an anti-virus program to check disks regularly.
  • 19. A database is the second general purpose package (along with a word processor) required to produce a mail merged document. Having studied both these packages, we are now in a better position to understand how a mail merge works. Mail merging is the process of combining details from a database with a standard letter in a word processing package, to produce personalised letters - as many letters as there are records in the database. Mail Merge
  • 20. Database Word Processed Standard Letter Name Flossie Year S1 Name Josie Year S5 Name Phyllis Year S4 Dear Parent, I am pleased to inform you that your child ___________ has won a prize for the best Computing student in __________ Head Teacher. Having created your database and your standard letter, you are ready to combine the two, filling the gaps in the standard letter with information from the database.
  • 21. Word Processed Standard Letter with database fields inserted ready for mail merge. The database field names are used to mark where in the standard letter information from the database will be inserted. These are shown in brackets like so << >> to mark them. Dear Parent, I am pleased to inform you that your child <<Name>> has won a prize for the best Computing student in <<Year>> Head Teacher. When the mail merge is performed the field names in brackets are replaced with the appropriate fields from the database. This is done for every record in the database.