Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

F Database


Published on

Published in: Economy & Finance, Technology
  • Be the first to comment

  • Be the first to like this

F Database

  1. 1. Introduction to Databases
  2. 2. What is a database? It is an organized collection of related information.
  3. 3. Some examples of databases <ul><li>Telephone directory </li></ul><ul><li>Company inventory </li></ul><ul><li>Drivers license information </li></ul><ul><li>Motor vehicle records </li></ul>123ABC
  4. 4. Terms to know for databases <ul><li>File/Table The complete collection of information stored </li></ul><ul><li>Record One specific entry in the file </li></ul><ul><li>Field One specific entry in a record </li></ul>
  5. 5. File or Table The complete collection of information stored
  6. 6. Record The specific information for one specific entry in the file.
  7. 7. Field The specific information for one specific entry in the record. Name: Address: Phone: Fields
  8. 8. Two types of databases <ul><li>Flat files All of the information is stored in one single database. </li></ul><ul><li>Relational Databases Information may be stored in multiple inter-related databases. </li></ul>
  9. 9. Examples of flat databases <ul><li>Telephone directory </li></ul><ul><li>Record/CD collection </li></ul>
  10. 10. Examples of Relational Databases <ul><li>Evidence tracking Case information Evidence item information Chain of custody </li></ul><ul><li>Crime reports Uniform crime report statistics Victim information Suspect information </li></ul>
  11. 11. How data is kept sorted When designing a database, a KEY Field is selected to sort the data.
  12. 12. What a key field does <ul><li>Keeps the data sorted by the values in that field (date, names, report number) </li></ul><ul><li>Only allows one entry for each value </li></ul><ul><li>Assists the computer in searching and retrieving specified information </li></ul><ul><li>A consideration for selecting a key field is how will the data be used </li></ul>
  13. 13. Some examples of criminal justice databases <ul><li>NCIC (National Crime Information Center - Federal) </li></ul><ul><li>CLETS (California Law Enforcement Teletype System - State) </li></ul><ul><li>CJIS (Criminal Justice Information System - Local) </li></ul>
  14. 14. Designing a database <ul><li>What data is to be collected? What fields will you need </li></ul><ul><li>How much storage space does each field need? </li></ul><ul><li>Do you want to have a key field? </li></ul><ul><li>With this in mind, lets design a database to track field contacts </li></ul>
  15. 15. Field Contact Database Structure <ul><li>Date of contact Date (Key field) </li></ul><ul><li>Time of contact Numeric (Key field) </li></ul><ul><li>Last name 10 Characters </li></ul><ul><li>First name 10 Characters </li></ul><ul><li>Middle name 10 Characters </li></ul><ul><li>Date of birth Date </li></ul><ul><li>Address 30 Characters </li></ul><ul><li>Drivers license # 8 Characters </li></ul><ul><li>Location of contact 30 Characters </li></ul><ul><li>Circumstances 200 Characters </li></ul><ul><li>Report number 11 Characters </li></ul>