Microsoft Access 2003 - Intro Class 5 Working with Queries.

Slides:



Advertisements
Similar presentations
Benchmark Series Microsoft Access 2010 Level 1
Advertisements

Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Chapter 5 Creating, Sorting, and Querying a Table
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Chapter 1 Databases and Database Objects: An Introduction
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Querying a Database Microsoft Office Access 2003.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 2 Querying a Database
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Access 2010 © 2011 The McGraw-Hill Companies,
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
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
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,
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 3Advanced Query Techniques.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Microsoft Access Intro Class 2 Designing Databases and Tables.
Chapter 6 Advanced Report Techniques
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
© 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 6 – Designing.
CHƯƠNG 3 Finding, Filtering, and Formatting Data.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
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.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
Concepts of Database Management Seventh Edition
Key Applications Module Lesson 21 — Access Essentials
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Microsoft Access Intro Class 6 Relationships.
Microsoft Office Illustrated Introductory, Premium Edition Using Tables and Queries.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
BUSINESS DRIVEN TECHNOLOGY Plug-In T5 Touring Access.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Microsoft Access 2010 Chapter 4 Creating Reports and Forms.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Microsoft Access Intro Class 9 Report Design.
Microsoft® Excel Create an Excel table. 1 Work with the Table Tools Design tab. 2 Sort and filter records in a table. 3 Identify structured references.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
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.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
Access Test Questions Test Date: 05/05/16. Chapter 1 (Lynda.com) Question 1 An access database uses five main components (database objects). Which is.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Microsoft Office Illustrated Introductory, Windows Vista Edition
Building and Using Queries
Microsoft Office Access 2003
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Microsoft Office Illustrated Introductory, Windows XP Edition
Presentation transcript:

Microsoft Access Intro Class 5 Working with Queries

2 Queries Vs. Filters CharacteristicsFiltersQueries *Are saved as an object in the database*NoYes Can be used to select a subset of records in a datasheet Yes Can be used to select a subset of fields in a datasheet NoYes Its resulting datasheet can be sued to enter and edit data Yes Its resulting datasheet can be used to sort, filter, and find records Yes Is commonly used as the source of data for a form or report NoYes Can calculate sums, averages, counts and other types of summary statistics across records NoYes Can be used to create calculated fieldsNoYes

3 Table Vs. Dynaset The table includes red, blue, and yellow circles. Given a “Red” criteria, the dynaset only has red circles.

4 ???Questions??? Let Queries provide the answers! What data is contained in LastName, FirstName and Phone fields of the Employee Table? How many employees work in the Accounting Department of the company? Queries may “answer” questions such as:

5 Matching Criteria This group includes women wearing suits. “Suits” is a criterion. This group includes women wearing blue suits. “Blue” and “suits” is a multiple criteria. Suppose our “database” is a ladies business luncheon.

6 Queries – Select Queries Combine fields from more than one table Up to 16 tables can be used Criteria – consists of an expression – a combination of symbols & text that produce a result Set a property that establishes a validation rule of sets a default field property Enter a criteria expression Create a calculated field Set a condition for carrying out a macro Construct functions or procedures in VBA Edit an SQL Query

7 Creating a Query in Design View In the Database Window, click the option for creating a query in Design View. A Show Table screen will appear where you select the table(s) that you want to include in the query. Once you have added the tables you want, close the Show Table screen. To remove a table from Query Design View, simply click once on the desired table (box), and press the Delete key on the keyboard. To add more tables to Query Design View, click the Show Table button on the toolbar

8 A Tour of Query Design View Table that query is based on Desired field(s) to include in query results Table where the field is coming from (useful if using multiple tables in query) Choose whether to sort a field in query results – when sorting by more than one field, query sorts leftmost field first Enter expression to determine what results the query will give – may enter criteria in multiple fields and use “or” row for multiple criteria in same field

9 Working with Fields in Design View To add a field to the design grid: Double-click the field OR Drag the desired field to the grid OR Use the drop-down list in the grid To delete a field from the design grid: Move the mouse to the top of the desired grid column until the mouse turns into a black down-pointing arrow, then click the mouse to select the column Press the Delete button on the keyboard

10 To Change Properties of a Field in a Query (e.g. to change the format of a field to currency) In the Query Design Grid, right-click the desired field and click the Properties command from the pop-up menu. The screen that appears should read Field Properties, not Query Properties. If not, keep trying, right-clicking right on the field name in the grid. Once in the Field Properties window, set any properties on any tab, then close the screen.

11 Comparison Operators OperatorDescriptionExpressionMeaning >Greater than>50Value exceeds 50 >=Greater than or equal to>=50Value is 50 or greater <Less than<50Value is less than 50 <=Less than or equal to<=50Value is 50 or less <>Not equal to<>50Any number except for 50 Between…AndFinds values between two numbers or dates Between #2/2/95# and #2/2/98# Dates between 2/2/95 and 2/2/98, inclusive InFinds a value that is one of a listIn(“IA”,”KS”,”NE”)Value equals IA or KS, or NE NullFinds records that are blankNullNo value has been entered Is Not NullFinds records that are not blankIs Not NullAny value has been entered, even 0 LikeFinds records that match the criteriaLike “A”Value equals A NotFinds records that do not match the criteria (similar to Not equal to <>) Not 2Numbers other than 2

12 Calculated Fields in Queries Begin with expression name (what you want to name the new field), followed by a colon : Use square brackets [] around field names if they are to be used Use mathematical operators such as +, -, *, /, as well as () for order of operations Resulting field appears only in the query, not stored in the table

13 Expression Guidelines Separate the name of the expression from the actual expression (formula) by a colon Do not include spaces or special characters Use brackets if spaces or special characters are used in the expression Ie: Name:[First Name]&Space(1)&[Last Name] Name:[First Name] & ” “ & [Last Name]

14 Calculated Field Syntax Cost: [Quantity]*[Price] The name of calculated field is followed by a colon. Existing field names must be enclosed in square brackets. Operators are placed outside the square brackets.

15 Examples of Calculated Fields Total Price:[UnitPrice]*[Quantity] Creates a new field called Total Price that consists of each unit price multiplied by each quantity entry in the table. New Price:[UnitPrice]*1.05 Creates a new field called New Price that calculates the unit price when increased by 5%. New Price:[UnitPrice]+10 Creates a new field called New Price that simply adds $10 to each existing unit price in the table

16 This work is licensed under a Creative Commons Attribution- ShareAlike 2.5 License.Creative Commons Attribution- ShareAlike 2.5 License