Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.

Slides:



Advertisements
Similar presentations
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Advertisements

Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
SUNY Morrisville-Norwich Campus-Week 10 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Access Tutorial 1 Creating a Database
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Concepts of Database Management Sixth Edition
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 3 Maintaining a Database Using the Design and Update Features of Access.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Chapter 3 Maintaining a Database
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Working with a Database
Work with Tables and Database Records Lesson 3. Objectives.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Exploring Microsoft Access Chapter 4 Relational Databases, External Data, Charts, and the Switchboard.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
Analyzing Data For Effective Decision Making Chapter 3.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Chapter 6 Database Administration
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
® Microsoft Office 2013 Access Creating a Database.
Tutorial 9 Using Action Queries and Advanced Table Relationships.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Microsoft Access 2010 Chapter 3 Maintaining a Database.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Chapter 1 Introduction to Database. Database Concept Field: a basic data element or attribute of an object Record: a set of fields Table: a set of records.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
Constraints Advanced Database Systems Dr. AlaaEddin Almabhouh.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Maintaining a Database Using the Design and Update Features of Access
Objectives Query for top values Create a parameter query
Objectives Create an action query to create a table
CIS 155 Table Relationship
Creating and Modifying Queries
Maintaining a Database Using the Design and Update Features of Access
Tutorial 9 Using Action Queries and Advanced Table Relationships
Presentation transcript:

Maintaining a Database Access Project 3

2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This includes:  Adding records  Changing data in records  Deleting records  In addition to record maintenance, database restructuring is necessary periodically. This includes:  Changing field characteristics (ie. type, size)  Removing existing fields  Creating indexes

3 Updating Records (AC 117)  You can use Datasheet view or Form view to add records  In both Datasheet view and Form view, records are ordered by primary key

4 Searching for a Record (AC 118)  “Search” is used when making changes to records  Use the Find or Replace tabs  Select the field in which your search criteria must match; values are restricted to that field  Wildcards also can be used. For example, Clicking the Name field, and entering Fa* in the Find What text box will find all records where the client name begins with Fa.

5 Filtering Records (AC 121)  Use Find to quickly locate a record – note that all other records will still appear  To have only the record or records that satisfy the criterion appear  use a filter  3 Types of Filters:  Filter By Selection – simple filter  Filter By Form – use for multiple criteria  Advanced Filter/Sort – complex criteria

6 Deleting Records (AC 125)  When you delete records, in Access, they are permanently deleted from the database  It is important to back up a database before adding, changing, or deleting records  In some DBMS, deleting records is a two-stage process. First, records are marked for removal and then removed permanently in a separate step ACCESS IS NOT A 2-STEP PROCESS

7 Adding a Field and Changing the Size of a Field (AC 127)  You may want to add a new field to your table  You can insert a blank row in the table for the field  The size of a field can be increased or decreased  If the field size is decreased, any existing data larger than the new field width will be truncated

8 Mass Changes (AC 135)  Mass changes to records are made thru queries: Update, Delete, Append, and Make-table queries  Update query – makes same change to all records  Delete query - deletes a group of records  Once records are deleted using a delete query, the operation cannot be undone  To preview the records to be deleted, view the query in Datasheet view before running it  Append query - adds records to an existing table  Make-table query - adds records to a new table

9 Validation Rules (AC 139)  Validation Rules are rules to be followed when entering data  Validation text – the message that will appear if a user violates the validation rule  Required field – a field in which the user must enter data  Range of values – entry must lie within a certain range of values  Default value – a value that will display on the screen in a particular field before the user begins adding a record  Legal value – accepted values for a field, others are rejected  Validation rules make it easier to enter data. When a data type is declared as Number or Currency, Access automatically validates the type of data that can be stored in the field (only numbers can be entered in the field).

10 Referential Integrity (AC 150)  The property that ensures that the value in a foreign key must match that of another table’s primary key  In Access, referential integrity is defined via relationships between tables using the Relationships command  A One-to-Many Relationship  means that one record in the 1 st table is related to many records in the 2 nd table (ie. one trainer associated with many clients)

11 Referential Integrity (AC 150)  If we were to delete out trainer 42’s data from the database, the clients associated with 42 would now be orphan records (not linked to any trainer)  To avoid this problem: 1) avoid such a deletion 2) cascade the delete, allow the deletion but automatically delete related records (ie. clients)  If we were to update trainer 42’s number to 62, we could: 1) avoid such an update 2) cacade the update, allow the update but automatically make the change for related clients

12 Creating and Using Indexes (AC 157)  Indexes are used both for retrieving records quickly and listing records in a different order.  Indexes can optimize the performance of the database  Access uses indexes automatically. In some DBMS the user must indicate that an index is to be used.

13 Creating and Using Indexes (AC 157)  Create an index on a field if one or more of the following conditions are present:  The field is the primary key of the table (auto-index in Access)  The field is the foreign key in a relationship you have created  You frequently will need your data to be sorted on the field  You frequently will need to locate a record based on a value in this field  Although indexes improve efficiency for sorting and finding records, they can slow the editing, adding, and deleting of data because they occupy disk space.

14 Creating and Using Indexes (AC 157)  Single-field index  An index whose key is a single field  You may allow duplicates in the index key (two records that have the same value). For name, duplicates should be allowed  Multiple-field indexes  An index whose key is a combination of fields

15 Special Database Operations (AC 163)  Backup and Recovery  To backup the database  File Back Up Database  Compacting and Repairing a Database  When you delete objects (tables, records, etc.) from a database, the space previously occupied is unavailable for use  You must compact the database to get this space back  3 step process: Compact the original database to a different name If successful, delete original database Rename compacted database to original name

Any Questions? Maintaining a Database Access Project 3