Larry Reaves larry.reaves@mail.wvu.edu October 9, 2013 Day 16: Access Chapter 2 Larry Reaves larry.reaves@mail.wvu.edu October 9, 2013.

Slides:



Advertisements
Similar presentations
Microsoft ® Access ® 2010 Training Create queries for a new database.
Advertisements

Microsoft® Office Access® 2007 Training
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
Access Tutorial 3 Maintaining and 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.
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Querying a Database Microsoft Office Access 2003.
Build a database IV: Create queries for a new Access database Overview: Ask your data — create queries It’s time to create queries, one of the most powerful.
Microsoft Access 2010 Chapter 7 Using SQL.
Chapter 2 Querying a Database
Maintaining and Querying a Database Microsoft Access 2010.
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Lesson 31: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Design.
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.
Microsoft Access 2010 Building and Using Queries.
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 2010 Access Tutorial 3 Maintaining and Querying a Database.
Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
 Agenda 2/20/13 o Review quiz, answer questions o Review database design exercises from 2/13 o Create relationships through “Lookup tables” o Discuss.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
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.
® Microsoft Office 2013 Access 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.
ACCESS (CHAPTER 2-3 continued) Naman Kohli October 16,
What are queries? Queries are a way of searching for and compiling data from one or more tables. Running a query is like asking a detailed question of.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Querying Databases A query is a program that allows us to VIEW the data or operate on the data Several types of queries –Select query –Merge query –Summary.
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.
Creating Advanced Queries and Enhancing Table Design.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
MICROSOFT ACCESS – CHAPTER 3 CONTD. Sravanthi Lakkimsetty Mar 09, 2016.
GO! with Microsoft Office 2016
Access Maintaining and Querying a Database
Microsoft Office Illustrated Introductory, Windows Vista Edition
Access Tutorial 3 Maintaining and Querying a Database
Access Chapter 2 Querying a Database.
Objectives Query for top values Create a parameter query
Plug-In T7: Problem Solving Using Access 2007
GO! with Microsoft Access 2016
Microsoft Office Illustrated Fundamentals
Access Maintaining and Querying a Database
Find and Replace Used to quickly find and/or replace data quickly
Building and Using Queries
Microsoft Office Access 2003
GO! with Microsoft® Access e
Database Queries.
MODULE 7 Microsoft Access 2010
Creating and Modifying Queries
Tutorial 3 – Querying a Database
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Microsoft Office Access 2003
Microsoft Office Access 2003
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Lesson 3 Chapter 10.
Guidelines for Microsoft® Office 2013
Microsoft Office Illustrated Introductory, Windows XP Edition
Shelly Cashman: Microsoft Access 2016
Assignment 3 Querying and Maintaining a Database
Tutorial 5 Advanced Queries and Enhanced Table Design
Presentation transcript:

Larry Reaves larry.reaves@mail.wvu.edu October 9, 2013 Day 16: Access Chapter 2 Larry Reaves larry.reaves@mail.wvu.edu October 9, 2013

Administrative Exam 1 is graded. Some assignment 3 grades are available. All should be finished tonight. Midterms will be submitted to STAR by Friday for any student with a D or F Bonus points are not included The last day to drop a course this semester is Friday, October 25th. After that date, you will receive whatever grade you earn.

Last class Database design principles Tables Fields Field Properties Primary/Foreign Keys Referential Integrity/Cascades

Basic queries A query is a question about the data stored in a database Decide which table (or tables) holds the information you would like to retrieve Decide which fields you are interested in Filter your results Sort your results

Single table queries There are two ways to create a simple query on one table Simple Query Wizard Create->Queries->Query Wizard Query Design View Create->Queries->Design View

Query Design View Field row: displays field name Table row: specifies the table the field belongs to Sort row: enables you to sort by the field Show row: controls whether the field will be shown Criteria row: used to filter which records will be selected

Filtering (Criteria) For text fields, the criteria must be enclosed in “quotation marks” Wildcards; ? stands for any single character, * stands for any group of characters Comparison operators: equal =, not equal <>, greater than >, less than <, greater than or equal to >=, less than or equal to <= Is Null matches empty fields, Is Not Null matches non empty fields

Multiple criteria Criteria on the same row are combined using AND Criteria on separate rows are combined using OR Criteria can be prefixed with NOT to exclude instead of include matching records You can also use AND within one criteria to put multiple conditions on one field

Sorting results Each field can be sorted in ascending (0-9, a-z, etc.) or descending (9-0, z-a, etc.) order The sorting is done from left to right Sorting by multiple fields only changes the order if there are multiple results where the first sort field has the same value

Copying queries Sometimes you need two similar queries. After you create the first one, you can easily make a copy that you can make changes to Open query->File->Save Object As Right click on the query in the Navigation Pane->Copy, right click on an empty space in the Navigation Pane->Paste

Running Queries Two ways to run queries from Design View Query Tools->Design->Results->Run Right click query tab->Datasheet View Some queries may take a few minutes to run if there is a lot of data in the tables it is using

Multi-Table queries Queries can use fields from more than one table as long as all the tables used have a defined relationship Query Tools->Query Setup->Show Table If you try to use tables without a defined relationship, you will get a very large number of results. Since Access doesn’t know how records are related, it combines the records in every possible way. It one table has 5 records, and the other has 11, the query will return 55 records (unless your criteria narrows it down)

Next Class Calculated Fields Expression Builder Functions Aggregation In queries In tables Expression Builder Functions Aggregation GROUP BY SUM, AVG, etc