1 / 32

Databases

Databases. What is a database?. A database is an organised collection of related information. What is a database application package?. A database application package is a program that lets you manipulate pieces of data. What is the difference between data and information?.

didina
Download Presentation

Databases

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Databases Databases

  2. What is a database? A database is an organised collection of related information. What is a database application package? A database application package is a program that lets you manipulate pieces of data. Databases

  3. What is the difference between data and information? • Data is raw facts and figures - no meaning • Information is in context - has a meaning • Data is processed into information Databases

  4. What makes up a database? • File - every thing • Record - one thing • Field - details about one thing Databases

  5. Record Another Field Field Another Record A Table Databases

  6. A Query Databases

  7. A Form Databases

  8. A Report Databases

  9. Creating a database - analysis • What do you want to hold information about? • Why do you want to hold the information? • What type of questions (queries) do you expect your database to be able to answer? • Decide what data has to be stored. Databases

  10. Data is stored in Fields • Decide what fields you need • Decide what type each field should be. Choose from • Text • Number (numeric) • Graphic • Currency • Date/Time • Yes/No Databases

  11. Implementing a database • Create the file • Create a record by creating the fields • Add the data • We can then • alter the record format • edit the records • or … Databases

  12. Operations in a database • Search using a keyword • simple • complex • Sort • ascending • descending • Computed (calculated) field Databases

  13. Calculated fields A calculated field in a database takes • the contents of two (or more) fields already in the database • performs a calculation using these contents • displays the results of the calculation Databases

  14. Examples of Calculated fields First Run: 20 s Second Run: 22 s Third Run: 18 s Average Run: 20s Databases

  15. Examples of Calculated fields Date of Birth: 19/12/2001 Age: 4 years This calculated field also needs to find the current date on the computer system Databases

  16. Examples of Calculated fields Name: Billy Clark Sales: £2,365 Target: £2,100 Bonus: Yes This calculated field compares the contents of two fields. Databases

  17. Sales example in Access Databases

  18. Query as displayed Databases

  19. Query Design Databases

  20. Query syntax Total: [First Quarter sales]+[Second Quarter sales]+[Third Quarter sales]+[Last Quarter sales] Bonus: IIf([Total]>1500,"Yes","No") Be careful!!! Not if but IIf Databases

  21. Form as displayed Databases

  22. Form design Databases

  23. Report as displayed Databases

  24. Report design Databases

  25. Storage requirements Perform a calculation Databases

  26. Storage requirements First, an easy problem.. If an apple costs 23p and I have £2, how many apples can I buy? The price of apples is in pence, so the money I have has to be in pence. If an apple costs 23p and I have 200p, how many apples can I buy? Number of apples = total money available / cost of one apple = 200/23 = 8.69 I can’t buy part of an apple, so the number of apples I can buy is 8. Databases

  27. Storage requirements And now.. If a record takes up 300kB and I have 1.44MB of storage, how many records can I store? The size of a record is in kB, so the storage I have has to be in kB. 1MB = 1024kB 1.44MB = 1.44 x 1024 = 1474kB Databases

  28. Storage requirements And so.. If a record takes up 300kB and I have 1474kB of storage, how many records can I store? Number of records = total storage available / size of one record = 1474/300 = 4.91 I can’t store part of a record, so the number of records I can store is 4. Databases

  29. Security and Privacy • What is security? • What is privacy ? • Control of access • Passwords • Levels of access • Physical access • Data Protection Act • principles • data subject, user • Computer Misuse Act • Unauthorised access (hacking) • Viruses Databases

  30. Is the data correct? • Verification • Performed by people • usually double entry of data • Validation • Performed by program • Types of checks • Presence • Data type • Range • Limited choice Databases

  31. Going forward • Better HCI • Alter screen input format • Alter output format • Knowledge base • Artificial intelligence Databases

  32. The End Databases

More Related