Download presentation
Presentation is loading. Please wait.
Published byAnnabella Stephany Tate Modified over 8 years ago
1
Copyright © Prentice Hall 20001 Database Management Systems Chapter 13 Getting Data Together
2
Copyright © Prentice Hall 20002 Applications Tools Recall that there are three main applications tools: Word processorsWord processors SpreadsheetsSpreadsheets DatabasesDatabases This chapter will focus on databases.
3
Copyright © Prentice Hall 20003 Databases A database is an organized collection of related data. Phone books, file cabinets, and index cards are non- computer versions of a database.
4
Copyright © Prentice Hall 20004 Database Management System (DBMS) A database management system is software that helps you organize data in a way that allows fast and easy access to the data. DBMS
5
Copyright © Prentice Hall 20005 Advantages of Databases There are several advantages to using a database to organize data, including: Reduced redundancyReduced redundancy Integrated dataIntegrated data IntegrityIntegrity
6
Copyright © Prentice Hall 20006 Reduced Redundancy Data can be retrieved from any place in the database so that many specific data items need not be repeated.
7
Copyright © Prentice Hall 20007 Integrated Data A database is considered integrated because any item of data can be used to satisfy an inquiry or report.
8
Copyright © Prentice Hall 20008 Integrity File integrity means that the data is accurate and up-to- date. As data redundancy is reduced, data integrity increases.
9
Copyright © Prentice Hall 20009 Building Blocks of Databases Like a phone book, a database is a collection of related data. The parts that make up that collection include: Data items and fieldsData items and fields RecordsRecords FilesFiles
10
Copyright © Prentice Hall 200010 Data Items and Fields A phone book contains fields: CapronH.123 Digit555-1001 LastFirstAddressPhone In each field, there are data items
11
Copyright © Prentice Hall 200011 Records Using the phone book analogy, each individual is a record. The larger the city, the more records it contains. CapronH.123 Digit555-1001 NoyesD.341 Market555-0101 FellC.2467 Buyer555-0110
12
Copyright © Prentice Hall 200012 Files Continuing with the phone book analogy, the book is the collection of records. In a database, this collection of records is the database file.
13
Copyright © Prentice Hall 200013 Database Power The power of a database is in the relationship between data in one field to that in another—even when the data is in different files. The user is often not aware of the complexity of the database structure—only how to use it.
14
Copyright © Prentice Hall 200014 Creating a Database Planning is as important to creating databases as it is to spreadsheets.
15
Copyright © Prentice Hall 200015 File Structure A user needs to first design the structure of the file they need.
16
Copyright © Prentice Hall 200016 Begin With a Sketch Careful planning will include a paper sketch of the file structure and the kind of data that will be put into each field.
17
Copyright © Prentice Hall 200017 Field Name Each field must have a unique name. LastFirstAddressPhone
18
Copyright © Prentice Hall 200018 Field Type There are four commonly used types of fields: CharacterCharacter NumericNumeric DateDate LogicLogic
19
Copyright © Prentice Hall 200019 Character Field Type Character fields contain descriptive data (text). Which of these fields are character fields? LastFirstAddressPhone
20
Copyright © Prentice Hall 200020 Numeric Field Type This field type contains numbers used for calculation. Our phone book analogy contains no numeric field types since calculations are not performed on the data. Think of a database that would need numeric field types.
21
Copyright © Prentice Hall 200021 Data Field Type Date field types are needed when the contents of the field will contain dates. Think of a database that would need data field types.
22
Copyright © Prentice Hall 200022 Logical Field Type This field type is used when the contents will contain true/false, yes/no conditions.
23
Copyright © Prentice Hall 200023 Field Widths Field width determines the maximum number of characters or digits to be contained in the field, excluding decimal points.
24
Copyright © Prentice Hall 200024 Key Fields A key field is a field that has been designated as the field on which an inquiry to the database will be based. LastFirstAddressPhone In the above example, Address is the key field.
25
Copyright © Prentice Hall 200025 Entering Data Using the paper version as a template, the file structure is set up on the computer database. Later, data items are entered into each field.
26
Copyright © Prentice Hall 200026 Using a Database The following operations are available to use with a database once data items have been entered. List records List records List specific fields List specific fields Query Query Add records Add records Modify records Modify records Delete records Delete records
27
Copyright © Prentice Hall 200027 List the Records Listing records means to display existing records on the screen or print them on paper. The user might need to scroll to see all the records in a database.
28
Copyright © Prentice Hall 200028 List Specific Fields A database might contain dozens of fields. Being able to list specific fields allows a user to only view or print some of the fields. In addition, the fields can be sorted in a particular order.
29
Copyright © Prentice Hall 200029 Query A query allows a user to find all records that match a key field. In the phone book example, a user could find all people (records) who have the same last name (key field).
30
Copyright © Prentice Hall 200030 Add New Records At any given time, new records can be added to a database. In addition, new fields can be added.
31
Copyright © Prentice Hall 200031 Modify Records At any given time, the data items can also be modified. Modifying records is necessary to keep them updated and accurate.
32
Copyright © Prentice Hall 200032 Delete Records Deleting records is another important option for database file maintenance.
33
Copyright © Prentice Hall 200033 Conclusion There are many database options beyond the basic features discussed in this presentation. The best way to learn more about a database management system is to use one.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.