Access Query Design. IT Fundamentals2 Access Query Design The Query design screen provides a mechanism for selecting specific data from datafile(s) by:

Slides:



Advertisements
Similar presentations
Welcome to Famis From W&M home page – Search famis.
Advertisements

Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Using Excel to Understand Your Data Clayton County Public Schools Department of Research, Evaluation and Assessment Assistant Principal In-Service.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
Querying a Database Using the Select Query Window
Querying a Database Microsoft Office Access 2003.
Mary K. Olson PS Reporting Instance – Query Tool 101.
CTS130 Spreadsheet Lesson 13 Working with Lists. Copying Data between Workbooks  Use the [Copy ]and [Paste] Buttons  Use the CTRL+[C] and CTRL + [V]
WRITING BASIC SQL SELECT STATEMENTS Lecture 7 1. Outlines  SQL SELECT statement  Capabilities of SELECT statements  Basic SELECT statement  Selecting.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
MMG508.  Access Types  Tables  Relational tables  Queries  Stored database queries  Forms  GUI forms for data entry/display  Reports  Reports.
Chapter 2 Querying a Database
© Scott/Jones Publishing, Inc. 1 Chapter 19 Advanced Features of List Management Excel 2003, Volume 2 by Karen J. Jolly.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Maintaining and Querying a Database Microsoft Access 2010.
Querying and Sorting IT Key Ideas, Dynamic Database Systems, 2002 Chapter 3.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
You can use a query to view a subset of your data or to answer questions about your data. For example, if you want to view a list of student names and.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
© 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.
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.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Querying a Database - A question or an inquiry (dictionary.com) - WHAT ARE WE ASKING QUESTIONS ABOUT? THE DATA - BY ASKING QUESTIONS OF THE DATA WE OBTAIN?
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Performing Calculations—1 of 2 In addition to using queries to retrieve, update, sort, and filter data in a database, you can use a query to perform calculations.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics Covered Understanding different types of Queries Creating a Query Creating a Query using a Wizard Changing.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Introduction to Access 2010 CIS120first.accdb is the database I am creating.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
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.
AESuniversity Ad hoc Reporting Version 5. for the special purpose or end presently under consideration concerned or dealing with a specific subject, purpose,
DAY 16: MICROSOFT ACCESS – CHAPTER 2 Madhuri Siddula October 8, 2015.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
CPSC 203 Introduction to Computers Tutorial 03 & 29 By Jie (Jeff) Gao.
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.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Microsoft Access 2000 Presentation 5 Creating Databases Part IV (Creating Queries)
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
ACCESS REPORT GENERATOR. IT Fundamentals2 Reports Overview Reports are an important part of any computer business application. Features that are important.
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.
Microsoft Access Prepared by the Academic Faculty Members of IT.
ACCESS PROJECT TWO. PROJECT ONE In project one you: -Created Tables -Created Forms -Created Reports In this project you will learn about queries. Databases.
Analyzing Data Using Access
Plug-In T7: Problem Solving Using Access 2007
Microsoft Office Illustrated Fundamentals
Find and Replace Used to quickly find and/or replace data quickly
What is a Database? How is a Database use? How to set up in Access?
Microsoft Office Access 2003
Tutorial 3 – Querying a Database
CIS16 Application Programming with Visual Basic
Microsoft Office Access 2003
How to retrieve CORs from any NeT program in CDX
Access: Queries II Participation Project
Access: Reports Participation Project
Grauer and Barber Series Microsoft Access Chapter One
Presentation transcript:

Access Query Design

IT Fundamentals2 Access Query Design The Query design screen provides a mechanism for selecting specific data from datafile(s) by: displaying only selected fields (Can also change the order of fields) only records that match given criteria reorder records can also link across multiple files

IT Fundamentals3 Access Query Design Open Access Query Screen Open the Database Click “Queries” Choose “Create query in Design View” Click ”Design” choose tables to add Click “close”

IT Fundamentals4 Design screen: contains top section which shows the tables to be used in the query Bottom section: contains fields and criteria used in the query Access Query Screen

IT Fundamentals5 Access Query Screen (cont.) Selecting Fields: Highlight the field in the active table. ( Double Click ) Drag the field from the active table and drop it in the field view skeleton. (Choose) Selecting Records: CRITERIA Enter criteria into bottom section of the query design screen. Character field: Data is entered into the file skeleton as is or encased in quotes. Can also retrieve a range of values: eg. < "M"

IT Fundamentals6 CRITERIA Retrieve all employees who are in Back department

IT Fundamentals7 CRITERIA (CONT.) Numeric field: eg. Retrieve all records with pay_rate <= 8.50

IT Fundamentals8 Date Fields: eg. before 27th July 1987 is entered as<27/07/87 CRITERIA (CONT.)

IT Fundamentals9 CRITERIA (CONT.) Logical Fields: Enter Yes or No Note: NO quote marks (“) – “Yes” (WRONG), Yes (CORRECT) Retrieve all employees who are union members

IT Fundamentals10 Condition1 AND Condition2 Enter conditions on the same line. eg.Department=“Back" AND Pay_Rate > 7.00 MULTIPLE CRITERIA

IT Fundamentals11 MULTIPLE CRITERIA (CONT.) Output:

IT Fundamentals12 MULTIPLE CRITERIA (CONT.) eg2. Pay_Rate between 7.00 AND 9.50

IT Fundamentals13 MULTIPLE CRITERIA (CONT.) Output:

IT Fundamentals14 MULTIPLE CRITERIA (CONT.) Condition1 OR Condition2 Enter conditions on different lines in file skeleton: Eg. Department is either “Back" OR "Centre"

IT Fundamentals15 MULTIPLE CRITERIA (CONT.) Output:

IT Fundamentals16 MULTIPLE CRITERIA (CONT.) Eg. 2 Department is either “Back” OR Pay_rate >9.00

IT Fundamentals17 MULTIPLE CRITERIA (CONT.) Output:

IT Fundamentals18 SORTING RECORDS Access allows you to sort the output in ascending or descending order on character, numeric & date fields.

IT Fundamentals19 SORTING RECORDS (CONT.) Example 1: Sort all employees in ascending order according to Name. Show Name, DOB & Department

IT Fundamentals20 SORTING RECORDS (CONT.) Output:

IT Fundamentals21 SORTING RECORDS (CONT.) Example 2: Sort all employees in ascending order according to Name within each Department. Show Name, DOB & Department

IT Fundamentals22 SORTING RECORDS (CONT.) Output:

IT Fundamentals23 SHOWING RECORDS Tick the SHOW box if you want the field to be displayed. Note: Not all SHOW boxes should be ticked.

IT Fundamentals24 SORTING RECORDS (CONT.) Output:

IT Fundamentals25 CALCULATION FIELDS Retrieve all employees whose Salary exceed 250. Here the Salary = Pay_Rate*HOURS_WORK. Note:In the Field row of a new column enter: Salary: PAY_RATE*HOURS_WORK Or: Right-Click the Field row of a new column choose “Build” Open an Expression Builder window

IT Fundamentals26 Expression Builder window

IT Fundamentals27 In the query design view, rename “Expr1” as “Salary”

IT Fundamentals28 CALCULATION FIELDS Output:

IT Fundamentals29 LAB 6 Checking you Data file Make sure they are the same as in Page93 Do Lab6 “Access Queries” on Page94~99 Save your result in “c:\homework”