 Review quiz. Answer questions.  Discuss queries: ◦ What is a query? Turning data stored in a database into information for decision making. ◦ You: Completed.

Slides:



Advertisements
Similar presentations
Exploring Microsoft Access
Advertisements

Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
University of Nevada, Reno College of Business Administration What are we going to learn 9/27 – 9/29? 1. Answer questions about MS Access queries. 2. Understand.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
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.
Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Chapter 2 Querying a Database
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Microsoft Access 2010 Chapter 7 Using SQL.
Access Tutorial 3 Maintaining and Querying a Database
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
Exploring Office Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)
Concepts of Database Management, Fifth Edition
SQL 資料庫查詢語言 取材自 EIS, 3 rd edition By Dunn et al..
Chapter 3 Single-Table Queries
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.
CS&E 1111 AcQueries Querying in Access Sorting data Aggregating Data Performing Calculations Objectives: Learn how to use the Access Query Design Tool.
1 Chapter 7 Query-By-Example by Monica Chan CS157B Professor Lee.
 Continue queries ◦ You completed two tutorials with step-by-step instructions for creating queries in MS Access. ◦ Now must apply knowledge and skills.
Building and Using Queries. Objectives Use the Query WizardUse the Query Wizard Work with data in a queryWork with data in a query Use Query Design ViewUse.
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
Concepts of Database Management Seventh Edition
Using Special Operators (LIKE and IN)
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 - Information From the Database: Reports.
 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.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Microsoft Access Illustrated Unit B: Building and Using Queries.
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.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Chapter 3 Query and Report. Agenda Report types Report contents Report creation Report design view Query and dynaset Function and grouping Action query.
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.
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
DAY 17: ACCESS CHAPTER 2-3 RAHUL KAVI October 17,
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
IS201 Agenda: 09/19  Modify contents of the database.  Discuss queries: Turning data stored in a database into information for decision making.  Create.
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.
Access Queries Agenda 6/16/14 Review Access Project Part 1, answer questions Discuss queries: Turning data stored in a database into information for decision.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
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.
1 Chapter 3 Single Table Queries. 2 Simple Queries Query - a question represented in a way that the DBMS can understand Basic format SELECT-FROM Optional.
Database Systems, 8 th Edition SQL Performance Tuning Evaluated from client perspective –Most current relational DBMSs perform automatic query optimization.
Southern Methodist University CSE CSE 2337 Introduction to Data Management Chapter 2.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Computer Science & Engineering 2111 Inner Joins and Advanced Queries 1CSE 2111 Lecture-Advanced Queries.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Querying in Access Objectives: Learn how to use the Access Query Design Tool manipulate data in Access: Sorting data Aggregating Data Performing Calculations.
Microsoft Office Illustrated Introductory, Windows Vista Edition
Access Maintaining and Querying a Database
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
GO! with Microsoft® Access e
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Access: Queries III Participation Project
Microsoft Office Illustrated Introductory, Windows XP Edition
Chapter 3 Query and Report.
Presentation transcript:

 Review quiz. Answer questions.  Discuss queries: ◦ What is a query? Turning data stored in a database into information for decision making. ◦ You: Completed two tutorials with step-by-step instructions for creating queries in MS Access. Now must apply knowledge and skills learned in the tutorials. ◦ Class today:  Highlight key issues about queries.  Explain aspects of MS Access queries in more detail.  Answer any questions about queries in preparation for completion of the next part of the project (due 10/04).

 What is the difference between a query and a table?  What is the difference between a query datasheet and a table datasheet?  Why do we create queries when we already have data in tables?

Query Underlying Tables Result Table

A query reduces the number of rows and columns in the underlying tables to provide information for decision making. A query enhances the data in the underlying tables by adding calculations and logical conditions.

 Table contains structure of data, constraints and actual data. ◦ Table is referred to as “underlying data”.  Query is a way to look at the data. ◦ Queries seldom look at the complete contents of a table because tables are usually very big, with many columns and many rows. ◦ The goal of creating a query is to provide appropriate data for decision making. ◦ Queries “filter” the data; fewer columns, fewer rows, calculated fields, summarized information.

 Individual row queries. ◦ Using one table. ◦ Using multiple tables.  Aggregate queries. ◦ Creating one line in the result table. ◦ Creating multiple groups in the result table.  Parameter queries.

 Pre-written functions exist to do common summary calculations: ◦ Sum, count ◦ Max, min ◦ Avg, stDev, var ◦ First, last  Can do calculations for all data in a result table, or grouped data in a result table

 Criteria. ◦ And vs. Or ◦ Relational operators., =, IN, LIKE ◦ Wildcards  Multiple tables.  Calculations.  Logical conditions. ◦ IIF ◦ NOT

 Each value in a field has very specific data coded for a computer to read.  Humans can discern vague similarities and differences among data fairly easily. Computers are more exacting.  Computers need you to tell them when data is a date, or a character, or a number.  A zero is not the same as a blank which is not the same as a null.  A null is a special character assigned to a field that technically has “no value”. It is very useful because we can search for a null value with special operators.

 Computers require very explicit instructions.  MS Access has default instructions, but that is because it is considered a very friendly, user-oriented package.  Normally, must be very explicit about relational operators on the conditions of queries. ◦ =, >, =, <= ◦ Like ◦ Between ◦ In ◦ Is  Wildcard is an asterisk.

 Referred to as “joining” tables.  Can produce confusing results.  Very dependent on a well-designed database. The tables must be related with appropriate foreign keys or the tables cannot be joined correctly for queries.

 Frequently want to see if something is TRUE or FALSE.  Example: If a training event has > $500 in expenses, then it is a high expense event.  Logical condition for Access: ◦ IIF(trainingexpenses + travelexpenses > 500, “high expense”) ◦ IIF(ISNULL(trainingexpenses + travelexpenses), 0) ◦ IIF(ISNULL(trainingexpenses + travelexpenses), 0, trainingexpenses + travelexpenses)

 5 minutes.  Turn to the person or people next to you.  Describe at least 3 queries that would be relevant to the training database we use for the Access project. ◦ None of the queries can be from the Access Project Part 2. ◦ Make sure that one of the queries requires calculations.

 Design view: Used to structure a query. Referred to as “query by example” or QBE.  Result table: The table produced by the query. Shown in the datasheet view.  SELECT query window: The window displayed in design view that is filled out to produce a result table. Also called the query design grid.  Field row: The area in the SELECT query window used to define what columns should appear in the result table.  Criteria row: The area in the SELECT query window used to identify which rows should appear in the result table.

 Can do calculations for a column based on the data in other columns for that same row.  Can use mathematical operators.  Can use pre-written functions in MS Access. Many different types of pre-written functions for date handling, data type conversion, calculations, etc. ◦ See the pre-written functions in the expression builder.  Can be very simple to very complicated.