With Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.

Slides:



Advertisements
Similar presentations
Chapter 1 Getting Started with Access Databases. Objectives Identify Good Database Design Create a Table and Define Fields in a New Blank Database Change.
Advertisements

With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Concepts of Database Management Sixth Edition
With Microsoft ® Excel 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel.
With Microsoft ® Office 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
With Microsoft® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Querying a Database Microsoft Office Access 2003.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access 2007 Committed to Shaping the Next Generation of.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your.
Chapter Extension 6 Using Excel and Access Together.
Microsoft Access Lecture -13- By lec. (Eng.) Hind Basil University of Technology Department of Materials Engineering 1.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 1 The Four Main Database Objects Series Editor Amy Kinser.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
Analyzing Data For Effective Decision Making Chapter 3.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.
Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! With Microsoft ® Office 2007 Intermediate Chapter.
GO! All In One 2/E By: Shelley Gaskin, Nancy Graviett, Debra Geoghan Chapter 13 Creating and Editing Presentations with Microsoft PowerPoint 2013 Copyright.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 2 Workshop 3 Queries and Data Access Series Editor Amy Kinser by.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
Skills for Success with Microsoft Office 2013 Volume 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Kris Townsend, Catherine.
DAY 16: MICROSOFT ACCESS – CHAPTER 2 Madhuri Siddula October 8, 2015.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 6 Action and Specialized Queries 1.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall1 with Microsoft ® Office for Mac 2011 Common Features Using the Common Features of Microsoft.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Microsoft Office Access 2010 Lab 3
GO! with Microsoft Office 2016
Exploring Microsoft Office Access 2007
Access Chapter 2 Querying a Database.
GO! with Microsoft Office 2016
GO! with Microsoft Access 2016
GO! with Microsoft® Access e
GO! with Microsoft® Access e
Lesson 3 Chapter 10.
Presentation transcript:

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2010 Chapter 2 Sort and Query a Database

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall2 Objectives Open an Existing Database Create Table Relationships Sort Records in a Table Create a Query in Design View Create a New Query from an Existing Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall3 Objectives Sort Query Results Specify Criteria in a Query Specify Numeric Criteria in a Query Use Compound Criteria Create a Query Based on More Than One Table

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall4 Objectives Use Wildcards in a Query Use Calculated Fields in a Query Calculate Statistics and Group Data in a Query Create a Crosstab Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall5 Open an Existing Database You can open a database file and save it with a new name. The Message Bar is the area below the Ribbon that displays information such as security alerts. The Enable Content button—when you know the database is safe to use on your computer

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall6 Open an Existing Database

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall7 Create Table Relationships Access databases are relational databases, they connect to other tables through common fields. –Common fields are fields that contain the same data in more than one table. After you have a table for each subject in your database, you must provide a way to connect the data in the tables when you need meaningful information.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall8 Create Table Relationships To connect the data in your tables, create common fields in related tables, and then define table relationships. –A relationship is an association established between two tables based on common fields. –Once established, you create a query, a form, or a report that displays information from more than one table.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall9 Create Table Relationships

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall10 Create Table Relationships Add tables to the Relationships window to show a field list, a list of field names in a table.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall11 Create Table Relationships Both tables include the common field

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall12 Create Table Relationships A one-to-many relationship is the most common –Example: Because one instructor can teach many different courses, one Instructor ID number can be present many times in the 2A Schedule table –This relationship between each instructor and the course is known as a one-to-many relationship

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall13 Create Table Relationships Dragging—creates the one-to-many relationship Foreign key—field in the related table that connects the primary key in another table The one side—typically the primary key Referential integrity—set of rules to ensure that the data between related tables is valid

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall14 Create Table Relationships Join line—the line joining two tables −Displays between the two tables

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall15 Sort Records in a Table Sorting—process of arranging data in a specific order based on the value in field –Initially, records display in the order entered into the table. –For a primary key field, records are displayed in order based on that field.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall16 Sort Records in a Table Sort records on two or more fields: –Outermost sort field—first level of sorting –Innermost sort field—second level of sorting For example, you might want to sort first by the Last Name field (outermost sort field), and then by the First Name field (innermost sort field).

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall17 Sort Records in a Table Sorting records: –Ascending order sorts text alphabetically (A to Z) and sorts numbers from the lowest number to the highest number. –Descending order sorts text in reverse.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall18 Create a Query in Design View Query –Answers a question –Creates a subset of records, according to your specifications Select query—database object that retrieves (selects) specific data from one or more tables Query Design view—creates complex queries

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall19 Create a Query in Design View Data source—table or tables where a query selects its data

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall20 Create a Query in Design View The Query window has two parts: –Table area (upper area)—displays field lists for tables used in the query –Design grid (lower area)—displays design for the query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall21 Create a Query in Design View Run a query to display the results after you create it.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall22 Create a New Query from an Existing Query Modify an existing query, save with a new name, use a new design –An existing query saves time, if your new query uses all or some of the same fields and conditions in an existing query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall23 Sort Query Results Sort results of a query in ascending or descending order in either Datasheet view or Design view.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall24 Sort Query Results Design view—results displayed in a specified sort order, or for sorted results in a report –Fields with a Sort designation are sorted from left to right. –Sorted field on left becomes the outermost sort field. –Sorted field on right becomes the innermost sort field. –Sorted results not what you intended? Be sure fields are displayed from left to right according to the groupings desired.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall25 Sort Query Results

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall26 Specify Criteria in a Query Queries locate information based on criteria. Criteria –Are conditions that identify the specific records you are looking for –Enable you to ask specific questions to get specific results

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall27 Specify Criteria in a Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall28 Specify Criteria in a Query Locate records where data is missing –Missing records can be located using Is Null—empty—as the criteria the field –Is Not Null—displays only records where a value has been entered as the criteria

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall29 Specify Numeric Criteria in a Query Numeric data can be set as fields. –Design your table setting using data type for fields that will contain numbers, currency, or dates so mathematical calculations can be performed.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall30 Specify Numeric Criteria in a Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall31 Specify Numeric Criteria in a Query Comparison operators—symbols that evaluate each field value –Can determine if it is the same (=), greater than (>), less than (<), or in between a range of values as specified by the criteria. –Equal (=) is assumed, if no comparison operator is specified.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall32 Specify Numeric Criteria in a Query Between... And operator—a comparison operator that looks for values within a range

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall33 Use Compound Criteria Compound criteria—to specify more than one condition—criteria—in a query –Compound criteria use AND and OR logical operators. AND condition requires records to meet all parts of the specified criteria. OR condition specifies multiple criteria for a single field, or multiple criteria for different fields and displays records that meet any of the conditions. –Logical operators enable entry of criteria for the same field or different fields.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall34 Use Compound Criteria

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall35 Create a Query Based on More Than One Table Relational database—retrieve information from more than one table –Tables are joined by relating the primary key field in one table to a foreign key field in another. Creates a relationship Enables inclusion of data from more than one table in a query –When extracting data from multiple tables, the information on the Table row is helpful, especially when different tables include the same field names.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall36 Create a Query Based on More Than One Table

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall37 Use Wildcards in a Query Wildcard characters—serve as a placeholder for one or more unknown characters in the criteria Use wildcard characters in place of the characters: –Asterisk (*) is a placeholder to match one or more characters. –Question mark (?) is a wildcard that is used to search for unknown single characters.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall38 Use Wildcards in a Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall39 Use Calculated Fields in a Query Calculated field—queries created from calculated values are stored here A calculated field stores the value of a mathematical operation. –Multiply two fields together without having to include a specific field for this amount in the table, which reduces the size of the database and provides more flexibility.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall40 Use Calculated Fields in a Query Calculated field query two steps: –Name the field that will store the calculated values. –Write the expression—the formula—that performs the calculation. Each field name used in the calculation must be enclosed within its own pair of square brackets.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall41 Use Calculated Fields in a Query Zoom dialog box—more working space enables you to see the entire calculation

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall42 Use Calculated Fields in a Query Property Sheet—customize fields in a query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall43 Calculate Statistics and Group Data in a Query Perform statistical calculations on a group of records Aggregate functions—calculations performed on a group of records –Include only the field summarized in the query, so that the aggregate function (sum, average, minimum, maximum, etc.) is applied to that single field –Can also be used to calculate totals by groups of data

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall44 Calculate Statistics and Group Data in a Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall45 Calculate Statistics and Group Data in a Query Aggregate Functions Function Name What It Does SumTotals the values in a field. AvgAverages the values in a field. MinLocates the smallest value in a field. MaxLocates the largest value in a field. CountCounts the number of records in a field. StDevCalculates the Standard Deviation on the values in a field. VarCalculates the Variance on the values in a field. FirstDisplays the First value in a field. LastDisplays the Last value in a field. ExpressionCreates a calculated field that includes an aggregate function. WhereLimits records to those that match a condition specified in the Criteria row.

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall46 Calculate Statistics and Group Data in a Query Using aggregate functions in a query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall47 Create a Crosstab Query A crosstab query: –Uses an aggregate function for data that can be grouped by two types of information –Displays data in a compact, spreadsheet- like format –Always has at least one row heading, one column heading, and one summary field Use a crosstab query to summarize a large amount of data in a small space so that is easy to read

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall48 Create a Crosstab Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall49 Covered Objectives Open an Existing Database Create Table Relationships Sort Records in a Table Create a Query in Design View Create a New Query from an Existing Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall50 Covered Objectives Sort Query Results Specify Criteria in a Query Specify Numeric Criteria in a Query Use Compound Criteria Create a Query Based on More Than One Table

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall51 Covered Objectives Use Wildcards in a Query Use Calculated Fields in a Query Calculate Statistics and Group Data in a Query Create a Crosstab Query

with Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall52 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2011 Pearson Education, Inc. Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall